Skip to content

Commit 55f287a

Browse files
Remove nodejs types - code supposed to run in the browser
1 parent 2d74388 commit 55f287a

5 files changed

Lines changed: 4 additions & 23 deletions

File tree

package-lock.json

Lines changed: 0 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"devDependencies": {
4343
"@frontify/eslint-config-basic": "^1.0.11",
4444
"@rollup/plugin-node-resolve": "^16.0.3",
45-
"@types/node": "^25.2.2",
4645
"esbuild": "^0.27.3",
4746
"eslint": "^9.39.2",
4847
"prettier": "^3.8.1",

src/Popup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const DEFAULT_POPUP_CONFIG = {
3535

3636
export class Popup {
3737
public readonly popUp: Window | null;
38-
private readonly interval: NodeJS.Timeout;
38+
private readonly interval: number;
3939
private readonly unregisterEventListener: () => void;
4040
private static EVENT_NAME_CANCELLED = 'frontify-oauth-authorize-cancelled';
4141
private static EVENT_NAME_SUCCESS = 'frontify-oauth-authorize-success';

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ const POPUP_STATE = {
2727

2828
let popup: Popup;
2929
let token: Token;
30-
let domainPopUpTimeout: NodeJS.Timeout;
31-
let authTimeout: NodeJS.Timeout;
30+
let domainPopUpTimeout: number;
31+
let authTimeout: number;
3232

3333
export async function authorize(
3434
configuration: AuthConfigurationInput,

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"moduleResolution": "node",
1010
"esModuleInterop": true,
1111
"lib": ["DOM", "DOM.Iterable", "ESNext"],
12-
"types": ["node"]
12+
"types": []
1313
},
1414
"include": ["src"],
1515
"exclude": ["node_modules", "**/tests/*"]

0 commit comments

Comments
 (0)