Skip to content

Commit

Permalink
fix: use TypeScript v5
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Apr 10, 2023
1 parent 5999eb9 commit 2bea7b4
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 104 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"dependencies": {
"@discordjs/collection": "^1.5.0",
"@sapphire/utilities": "^3.11.0",
"@sapphire/utilities": "^3.11.1",
"tslib": "^2.5.0"
},
"devDependencies": {
Expand All @@ -36,12 +36,12 @@
"@favware/cliff-jumper": "^2.0.0",
"@favware/npm-deprecate": "^1.0.7",
"@favware/rollup-type-bundler": "^2.0.0",
"@sapphire/eslint-config": "^4.3.8",
"@sapphire/eslint-config": "^4.4.0",
"@sapphire/prettier-config": "^1.4.5",
"@sapphire/ts-config": "^3.3.4",
"@sapphire/ts-config": "^4.0.0",
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",
Expand All @@ -54,7 +54,7 @@
"pretty-quick": "^3.1.3",
"typedoc": "0.23.28",
"typedoc-json-parser": "^7.2.0",
"typescript": "^4.9.5"
"typescript": "^5.0.4"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/structures/Piece.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Awaitable } from '@sapphire/utilities';
import { container, Container } from '../shared/Container';
import { PieceLocation, PieceLocationJSON } from './PieceLocation';
import { container, type Container } from '../shared/Container';
import { PieceLocation, type PieceLocationJSON } from './PieceLocation';
import type { Store } from './Store';

/**
Expand Down
6 changes: 3 additions & 3 deletions src/lib/structures/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import type { AbstractConstructor } from '@sapphire/utilities';
import { promises as fsp } from 'fs';
import { join } from 'path';
import { LoaderError, LoaderErrorType } from '../errors/LoaderError';
import { Path, resolvePath } from '../internal/Path';
import { container, Container } from '../shared/Container';
import { resolvePath, type Path } from '../internal/Path';
import { container, type Container } from '../shared/Container';
import type { HydratedModuleData, ILoaderResultEntry, ILoaderStrategy, ModuleData } from '../strategies/ILoaderStrategy';
import { LoaderStrategy } from '../strategies/LoaderStrategy';
import type { Piece } from './Piece';
import { StoreRegistry, StoreRegistryEntries } from './StoreRegistry';
import { StoreRegistry, type StoreRegistryEntries } from './StoreRegistry';

/**
* The options for the store, this features both hooks (changes the behaviour) and handlers (similar to event listeners).
Expand Down
2 changes: 1 addition & 1 deletion src/lib/structures/StoreRegistry.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Collection } from '@discordjs/collection';
import { join } from 'path';
import { Path, resolvePath } from '../internal/Path';
import { resolvePath, type Path } from '../internal/Path';
import { getRootData } from '../internal/RootScan';
import type { Piece } from './Piece';
import type { Store } from './Store';
Expand Down
Loading

0 comments on commit 2bea7b4

Please sign in to comment.