voice box hopefully done
This commit is contained in:
12
ambient.d.ts
vendored
12
ambient.d.ts
vendored
@@ -6,13 +6,18 @@
|
||||
|
||||
declare namespace LILY {
|
||||
interface Utils {
|
||||
remove_hook: undefined | (() => void)
|
||||
true(callback: () => unknown): true // stops elsint from complainting about constant bool expressions
|
||||
with<V, R>(value: V, callback: (v: V) => R): R // A silly helper to kinda curry values
|
||||
send(callback: () => unknown): boolean // updates the player if the function succeeds
|
||||
}
|
||||
|
||||
interface Box {
|
||||
enable(): void
|
||||
disable(): void
|
||||
get equipped(): boolean
|
||||
enable(item: Item | undefined): boolean
|
||||
disable(item: Item | undefined): boolean
|
||||
on(): boolean
|
||||
off(): boolean
|
||||
get item(): Item | undefined
|
||||
get enabled(): boolean
|
||||
}
|
||||
|
||||
@@ -37,6 +42,7 @@ declare namespace LILY {
|
||||
interface Commands extends Command<Commands> {}
|
||||
interface Belt {
|
||||
admins: number[]
|
||||
users: number[]
|
||||
cli: Commands
|
||||
is_cb(subject: Commands | CommandCB): subject is CommandCB
|
||||
run(tokens: string[]): string
|
||||
|
Reference in New Issue
Block a user