Skip to content

Commit 34a1e78

Browse files
committed
make Player* interfaces global so can be extended by other .d.ts files
1 parent c474d2a commit 34a1e78

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

env.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ type Subscripts = Record<string, Record<string, (...args: any) => any>> & {
1717
users: ErrorScripts
1818
}
1919

20-
interface PlayerFullsec {}
21-
interface PlayerHighsec {}
22-
interface PlayerMidsec {}
23-
interface PlayerLowsec {}
24-
interface PlayerNullsec {}
25-
2620
type UpgradeRarityString = "`0noob`" | "`1kiddie`" | "`2h4x0r`" | "`3h4rdc0r3`" | "`4|_|b3|2`" | "`531337`"
2721
type UpgradeRarityNumber = 0 | 1 | 2 | 3 | 4 | 5
2822

@@ -895,6 +889,12 @@ declare global {
895889
type Context = CliContext | SubscriptContext | ScriptorContext | BrainContext
896890
type ObjectId = { $oid: string }
897891

892+
interface PlayerFullsec {}
893+
interface PlayerHighsec {}
894+
interface PlayerMidsec {}
895+
interface PlayerLowsec {}
896+
interface PlayerNullsec {}
897+
898898
/** Subscript space that can call FULLSEC scripts. */ const $fs: Fullsec
899899

900900
/** Subscript space that can call HIGHSEC and above scripts. Makes your script HIGHSEC (overrides FULLSEC). */

0 commit comments

Comments
 (0)