-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b55dea
commit c8ff258
Showing
3 changed files
with
34 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
packages/@lightningjs/ui-components/src/globals/context/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
type ThemeObject = any; | ||
|
||
export class Context { | ||
get theme(): ThemeObject; | ||
set theme(value: ThemeObject); | ||
get keyMetricsCallback(): object; | ||
set keyMetricsCallback(value: object); | ||
get debug(): boolean; | ||
set debug(value: boolean); | ||
|
||
on(name: string, callback: Function): void; | ||
off(name: string, callback?: Function): void; | ||
emit(name: string, payload: string | object | number | boolean): void; | ||
|
||
log(...args: any[]): void; | ||
info(...args: any[]): void; | ||
warn(...args: any[]): void; | ||
error(...args: any[]): void; | ||
|
||
setTheme(value: object | any[]): ThemeObject; | ||
updateTheme(value: object | any[]): ThemeObject; | ||
getSubTheme(subThemeName: string): ThemeObject; | ||
setSubThemes(subThemesObj: Record<string, any>): void; | ||
setSubTheme(subThemeName: string, value: any): ThemeObject; | ||
updateSubTheme(subThemeName: string, value: any): ThemeObject; | ||
removeSubTheme(subThemeName: string): void; | ||
setLogCallback(value: Function): void; | ||
setKeyMetricsCallback(value: Function): void; | ||
config(config: Record<string, any>): Context; | ||
} | ||
|
||
declare const contextInstance: Context; | ||
export default contextInstance; |
21 changes: 0 additions & 21 deletions
21
packages/@lightningjs/ui-components/src/globals/index-remove.js
This file was deleted.
Oops, something went wrong.