Fix export in detect-inapp (#63253)

And exempt in hapi__catbox-memory; the warning is incorrect there.
This commit is contained in:
Nathan Shively-Sanders
2022-11-14 11:38:23 -08:00
committed by GitHub
parent 7cb265a408
commit 83be7628f0
3 changed files with 7 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import InApp from 'detect-inapp';
import InApp = require('detect-inapp');
const inApp = new InApp('useragent');

View File

@@ -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;

View File

@@ -1,3 +1,6 @@
{
"extends": "@definitelytyped/dtslint/dt.json"
"extends": "@definitelytyped/dtslint/dt.json",
"rules": {
"npm-naming": [true,{"mode":"code","errors":[["NeedsExportEquals",false]]}]
}
}