Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes type error when using strict mode in TS: Type 'TCustomResult' does not satisfy the constraint 'IObj' #119

Merged
merged 1 commit into from Nov 18, 2022

Conversation

Giacom
Copy link
Contributor

@Giacom Giacom commented Nov 16, 2022

When strict mode is enabled you can get this error:

Fixes the error:
node_modules/directory-tree/index.d.ts:16:32 - error TS2344: Type 'TCustomResult' does not satisfy the constraint 'IObj'.

This is the TSConfig I use to compare.

{
    "compilerOptions": {
        "esModuleInterop": true,
        "target": "es5",
        "moduleResolution": "node",
        "sourceMap": true,
        "outDir": "dist",
        "strict": true,
        "importHelpers": true,
    },
    "lib": ["esnext"],
}

Fixes the error:
    node_modules/directory-tree/index.d.ts:16:32 - error TS2344: Type 'TCustomResult' does not satisfy the constraint 'IObj'.
@mihneadb
Copy link
Owner

Hey thanks for submitting this!

@mihneadb mihneadb merged commit dac5db8 into mihneadb:master Nov 18, 2022
@Giacom
Copy link
Contributor Author

Giacom commented Nov 18, 2022

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants