Skip to content

Instantly share code, notes, and snippets.

@ryancat
Last active October 22, 2018 06:33
Show Gist options
  • Save ryancat/e7e84d1e0718e178502ab5f12c167c2e to your computer and use it in GitHub Desktop.
Save ryancat/e7e84d1e0718e178502ab5f12c167c2e to your computer and use it in GitHub Desktop.
typescript migration demo
// typescript will give error: An import path cannot end with a '.ts' extension.
// this is just for clarification purpose!
import { IModuleAConfig } from './types.ts';
declare class ModuleA {
constructor(config: IModuleAConfig);
private initModuleA;
}
export = ModuleA;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment