mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
Fix export in detect-inapp (#63253)
And exempt in hapi__catbox-memory; the warning is incorrect there.
This commit is contained in:
committed by
GitHub
parent
7cb265a408
commit
83be7628f0
@@ -1,4 +1,4 @@
|
||||
import InApp from 'detect-inapp';
|
||||
import InApp = require('detect-inapp');
|
||||
|
||||
const inApp = new InApp('useragent');
|
||||
|
||||
|
||||
3
types/detect-inapp/index.d.ts
vendored
3
types/detect-inapp/index.d.ts
vendored
@@ -3,7 +3,7 @@
|
||||
// Definitions by: Johan Möller <https://github.com/moelleer>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export default class InApp {
|
||||
declare class InApp {
|
||||
ua: string;
|
||||
|
||||
readonly browser: string;
|
||||
@@ -13,3 +13,4 @@ export default class InApp {
|
||||
|
||||
constructor(useragent: string);
|
||||
}
|
||||
export = InApp;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
{
|
||||
"extends": "@definitelytyped/dtslint/dt.json"
|
||||
"extends": "@definitelytyped/dtslint/dt.json",
|
||||
"rules": {
|
||||
"npm-naming": [true,{"mode":"code","errors":[["NeedsExportEquals",false]]}]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user