Create types for pascalcase (#44841)

This commit is contained in:
IdeFFiX 2020-05-20 00:16:59 +02:00 committed by GitHub
parent 8e399a1750
commit a779442bdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 0 deletions

8
types/pascalcase/index.d.ts vendored Normal file
View 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;

View File

@ -0,0 +1,3 @@
import pascalcase from "pascalcase";
pascalcase(""); // $ExpectType string

View 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"
]
}

View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }