mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
feat(is-relative-path): type definition for v2 (#42780)
- type definitions - tests https://github.com/mrjoelkemp/is-relative-path#usage Thanks!
This commit is contained in:
parent
80b5c8a717
commit
60ff970f67
11
types/is-relative-path/index.d.ts
vendored
Normal file
11
types/is-relative-path/index.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
// Type definitions for is-relative-path 2.0
|
||||
// Project: https://github.com/mrjoelkemp/is-relative-path
|
||||
// Definitions by: Piotr Błażejewicz (Peter Blazejewicz) <https://github.com/peterblazejewicz>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/**
|
||||
* Is relative path?
|
||||
*/
|
||||
declare function isRelative(path: string): boolean;
|
||||
|
||||
export = isRelative;
|
||||
3
types/is-relative-path/is-relative-path-tests.ts
Normal file
3
types/is-relative-path/is-relative-path-tests.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import isRelative = require('is-relative-path');
|
||||
|
||||
isRelative('.'); // $ExpectType boolean
|
||||
23
types/is-relative-path/tsconfig.json
Normal file
23
types/is-relative-path/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"is-relative-path-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/is-relative-path/tslint.json
Normal file
1
types/is-relative-path/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user