File tree Expand file tree Collapse file tree 5 files changed +74
-0
lines changed Expand file tree Collapse file tree 5 files changed +74
-0
lines changed Original file line number Diff line number Diff line change 1+ *
2+ ! ** /* .d.ts
3+ ! ** /* .d.cts
4+ ! ** /* .d.mts
5+ ! ** /* .d. * .ts
Original file line number Diff line number Diff line change 1+ declare namespace isFQDN {
2+ interface Options {
3+ /**
4+ * @default true
5+ */
6+ requireTld ?: boolean | undefined ;
7+ /**
8+ * @default false
9+ */
10+ allowUnderscores ?: boolean | undefined ;
11+ /**
12+ * @default false
13+ */
14+ allowTrailingDot ?: boolean | undefined ;
15+ }
16+ }
17+
18+ declare function isFQDN ( str : string , options ?: isFQDN . Options ) : boolean ;
19+
20+ export = isFQDN ;
Original file line number Diff line number Diff line change 1+ import isFQDN = require( "is-fqdn" ) ;
2+
3+ // @ts -expect-error No arguments
4+ isFQDN ( ) ;
5+
6+ // $ExpectType boolean
7+ isFQDN ( "foo" ) ;
8+ // $ExpectType boolean
9+ isFQDN ( "foo" , { } ) ;
10+ // $ExpectType boolean
11+ isFQDN ( "foo" , {
12+ requireTld : true ,
13+ allowUnderscores : true ,
14+ allowTrailingDot : true ,
15+ } ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "private" : true ,
3+ "name" : " @types/is-fqdn" ,
4+ "version" : " 2.0.9999" ,
5+ "projects" : [
6+ " https://github.com/parro-it/is-fqdn#readme"
7+ ],
8+ "devDependencies" : {
9+ "@types/is-fqdn" : " workspace:."
10+ },
11+ "owners" : [
12+ {
13+ "name" : " Adam Thompson-Sharpe" ,
14+ "githubUsername" : " MysteryBlokHed"
15+ }
16+ ]
17+ }
Original file line number Diff line number Diff line change 1+ {
2+ "compilerOptions" : {
3+ "module" : " node16" ,
4+ "lib" : [" es6" ],
5+ "noImplicitAny" : true ,
6+ "noImplicitThis" : true ,
7+ "strictFunctionTypes" : true ,
8+ "strictNullChecks" : true ,
9+ "types" : [],
10+ "noEmit" : true ,
11+ "forceConsistentCasingInFileNames" : true
12+ },
13+ "files" : [
14+ " index.d.ts" ,
15+ " is-fqdn-tests.ts"
16+ ]
17+ }
You can’t perform that action at this time.
0 commit comments