mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add type definitions for chunk-text (#36772)
This commit is contained in:
parent
bb95be8979
commit
fbe126dfaa
3
types/chunk-text/chunk-text-tests.ts
Normal file
3
types/chunk-text/chunk-text-tests.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import chunk = require('chunk-text');
|
||||
|
||||
console.log(chunk('hello world how are you?', 7));
|
||||
8
types/chunk-text/index.d.ts
vendored
Normal file
8
types/chunk-text/index.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// Type definitions for chunk-text 1.0
|
||||
// Project: https://github.com/algolia/chunk-text
|
||||
// Definitions by: Malo Bourgon <https://github.com/malob>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = chunkText;
|
||||
|
||||
declare function chunkText(text: string, chunkSize: number): string[];
|
||||
24
types/chunk-text/tsconfig.json
Normal file
24
types/chunk-text/tsconfig.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"chunk-text-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/chunk-text/tslint.json
Normal file
1
types/chunk-text/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user