mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-08-30 11:42:29 +00:00
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
// Type definitions for Roll20 built-in functions and variables
|
|
// Project: Roll20 Stars Without Number Revised
|
|
// Definitions by: Karl Erik Hofseth https://github.com/Karlinator
|
|
|
|
declare type EventInfo = {
|
|
sourceAttribute: string,
|
|
sourceType: string,
|
|
previousValue: string,
|
|
newValue: string,
|
|
removedInfo: string
|
|
}
|
|
|
|
declare type AttributeContent = string | number | boolean
|
|
|
|
declare function getAttrs(attributes: string[], callback?: (values: {[key: string]: string}) => void): void
|
|
|
|
declare function setAttrs(values: {[key: string]: AttributeContent}, options?: {silent?: boolean}, callback?: (values: {[key: string]: string}) => void): void
|
|
|
|
declare function getSectionIDs(section_name: string, callback: (values: string[]) => void): void
|
|
|
|
declare function generateRowID(): string
|
|
|
|
declare function removeRepeatingRow(RowID: string): void
|
|
|
|
declare function getTranslationByKey(key: string): string | false
|
|
|
|
declare function getTranslationLanguage(): string
|
|
|
|
declare function setDefaultToken(values: {[key: string]: string}): void
|
|
|
|
declare function on(event: string, callback: (eventInfo: EventInfo) => void): void |