Skip to content

Commit

Permalink
Re-enable tsd
Browse files Browse the repository at this point in the history
Closes #162
  • Loading branch information
sindresorhus committed Dec 3, 2020
1 parent 0337bcd commit eb42284
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"node": ">=10"
},
"scripts": {
"//test": "xo && tsd && tsc",
"test": "xo && tsc"
"test": "xo && tsd && tsc"
},
"files": [
"index.d.ts",
Expand All @@ -36,7 +35,7 @@
],
"devDependencies": {
"@sindresorhus/tsconfig": "~0.7.0",
"tsd": "^0.13.1",
"tsd": "^0.14.0",
"typescript": "^4.1.2",
"xo": "^0.35.0"
},
Expand Down
2 changes: 1 addition & 1 deletion test-d/camel-case.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Split, CamelCase} from '../source/camel-case';
import {Split, CamelCase} from '../ts41/camel-case';
import {expectType, expectAssignable} from 'tsd';

// Split
Expand Down
2 changes: 1 addition & 1 deletion test-d/delimiter-case.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {UpperCaseCharacters, WordSeparators} from '../source/utilities';
import {SplitIncludingDelimiters, DelimiterCase} from '../source/delimiter-case';
import {SplitIncludingDelimiters, DelimiterCase} from '../ts41/delimiter-case';
import {expectType, expectAssignable} from 'tsd';

const splitFromCamel: SplitIncludingDelimiters<'fooBar', WordSeparators | UpperCaseCharacters> = ['foo', 'B', 'ar'];
Expand Down
2 changes: 1 addition & 1 deletion test-d/kebab-case.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
KebabCase
} from '../source/kebab-case';
} from '../ts41/kebab-case';
import {expectType} from 'tsd';

const kebabFromCamel: KebabCase<'fooBar'> = 'foo-bar';
Expand Down
2 changes: 1 addition & 1 deletion test-d/pascal-case.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {PascalCase} from '../source/pascal-case';
import {PascalCase} from '../ts41/pascal-case';
import {expectType} from 'tsd';

const pascalFromCamel: PascalCase<'fooBar'> = 'FooBar';
Expand Down
2 changes: 1 addition & 1 deletion test-d/snake-case.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
SnakeCase
} from '../source/snake-case';
} from '../ts41/snake-case';
import {expectType} from 'tsd';

const snakeFromCamel: SnakeCase<'fooBar'> = 'foo_bar';
Expand Down

0 comments on commit eb42284

Please sign in to comment.