1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

import from typings folder

Posted at

毎回忘れてしまうので、一応書き残します。

Goal

下記のようにimportできる

import { Configurations } from 'typings/types';

Tasks

Folders status

- src
  |- index.ts
- typings
  |- type.d.ts
- package.json

Create tsconfig.json

$ tsc --init
$ message TS6071: Successfully created a tsconfig.json file.
コメント削除された状態
{
  "compilerOptions": {
    "target": "es5",      
    "module": "commonjs",    
    "strict": true,         
    "esModuleInterop": true 
  }
}

Modified

修正後
{
  "compilerOptions": {
    "target": "es5",      
    "module": "commonjs",    
    "strict": true,
    "baseUrl": "./",
    "esModuleInterop": true 
  },
  "include": ["src/**/*"]
}
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?