0.0.3: added Kitty, plus a bit of cleanup

This commit is contained in:
2025-04-13 14:18:54 +00:00
parent c1300702d8
commit 9ceb6ea2cd
5 changed files with 39 additions and 31 deletions

3
ambient.d.ts vendored
View File

@@ -3,6 +3,7 @@ declare namespace LILY {
remove_hook: undefined | (() => void)
true(callback: () => unknown): true // stops eslint from complaining about constant bool expressions
with<V, R>(value: V, callback: (v: V) => R): R // A silly helper to kinda curry values
ass<V, R>(value: V | undefined | null, callback: (v: V) => R): R | undefined /* ditto, but check for empty */ //eslint-disable-line @typescript-eslint/ban-types
send(callback: () => boolean): boolean // updates the player if the function succeeds
}
@@ -36,7 +37,7 @@ declare namespace LILY {
interface Commands extends Command<Commands> {}
interface Belt {
admins: number[]
users: number[]
users: Record<number, {zone: AssetGroupName, name: string}>
cli: Commands
is_cb(subject: Commands | CommandCB): subject is CommandCB
run(tokens: string[]): string