Last active
December 23, 2024 13:09
-
-
Save aendra-rininsland/4cd1ee6c003b1c8c0934e13f6a4fcf61 to your computer and use it in GitHub Desktop.
Flourish global TypeScript def
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
declare namespace Flourish { | |
const static_prefix: string; | |
const environment: 'sdk' | 'editor' | 'story_editor' | 'live' | 'preview' | 'story_player'; | |
const is_read_only: boolean; | |
const fixed_height: boolean; | |
function setHeight(height: number | null): unknown; | |
function upload(unknown): unknown; | |
function warn(message: {message: string; explanation: string;}): void; | |
const app: unknown; | |
const Visualisation: Function; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a really weak definition I'm well aware, the Flourish upload function has nearly no documentation.
See: https://developers.flourish.studio/sdk/api-reference/window-flourish/