Skip to content

Is Codesandbox supports the d.ts import? #6106

Answered by chenxizhang
chenxizhang asked this question in Q&A
Discussion options

You must be logged in to vote

my bad, I checked carefully into the tsconfig.json, since the default setting of "include" is "./src/**/*" , so I just need to move the d.ts files into this folder. It works great.

{
    "include": [
        "./src/**/*"
    ],
    "compilerOptions": {
        "strict": true,
        "esModuleInterop": true,
        "lib": [
            "dom",
            "es2015"
        ],
        "jsx": "react-jsx",
        "typeRoots": [
            "./src/typings"
        ]
    }
}

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by chenxizhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant