🤖 Merge PR #65746 [is-firefox] Add types by @e9x

* [is-firefox] Add types

* [is-firefox] correctly export boolean
This commit is contained in:
David Reed
2023-06-13 20:08:12 +00:00
committed by GitHub
parent 6030e5a290
commit 6dd9877533
4 changed files with 35 additions and 0 deletions

8
types/is-firefox/index.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
// Type definitions for is-firefox 1.0
// Project: https://github.com/gillstrom/is-firefox#readme
// Definitions by: David Reed <https://github.com/e9x>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare const isFirefox: boolean;
export = isFirefox;

View File

@@ -0,0 +1,3 @@
import isFirefox = require('is-firefox');
isFirefox; // $ExpectType boolean

View 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-firefox-tests.ts"
]
}

View File

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