INNER CODE UNIT · TypeScript

myFunction

biaochenxuying/blog · typescript-in-action/sourcecode/ts-base/src/part2.project/04.libs/index.ts:18

    export function myFunction(): void;
}
m.myFunction = () => {}

// 全局插件
declare global {
    namespace globalLib {
        function doAnyting(): void
    }
}
globalLib.doAnyting = () => {}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…