mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Create types for pascalcase (#44841)
This commit is contained in:
parent
8e399a1750
commit
a779442bdd
8
types/pascalcase/index.d.ts
vendored
Normal file
8
types/pascalcase/index.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// Type definitions for pascalcase 1.0
|
||||
// Project: https://github.com/jonschlinkert/pascalcase
|
||||
// Definitions by: IdeFFiX <https://github.com/ideffix>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = pascalcase;
|
||||
|
||||
declare function pascalcase(value: string): string;
|
||||
3
types/pascalcase/pascalcase-tests.ts
Normal file
3
types/pascalcase/pascalcase-tests.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import pascalcase from "pascalcase";
|
||||
|
||||
pascalcase(""); // $ExpectType string
|
||||
24
types/pascalcase/tsconfig.json
Normal file
24
types/pascalcase/tsconfig.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"esModuleInterop": true,
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"pascalcase-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/pascalcase/tslint.json
Normal file
1
types/pascalcase/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user