How to use @amalto/typings - 1 common examples

To help you get started, we’ve selected a few @amalto/typings examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github amalto / platform6-ui-components / components / code-editor-input / index.tsx View on Github external
private setEditorOptions = ( editor: AceEditor ) => {

        const userJson = this.props.user ? getUserJson( this.props.user ) : {}

        const userSettings: CodeEditorInput.Settings = userJson ? userJson.codeEditorSettings || {} : {}

        const displaySettings = this.props.displaySettings || {}

        editor.setTheme( displaySettings.theme || userSettings.theme || 'ace/theme/tomorrow_night_eighties' )

        editor.setFontSize( displaySettings.fontSize || userSettings.fontSize || '12px' )

        let showInvisibles = false

        if ( displaySettings.showInvisibles !== undefined ) {
            showInvisibles = displaySettings.showInvisibles
        }
        else if ( userSettings.showInvisibles !== undefined ) {
            showInvisibles = userSettings.showInvisibles

@amalto/typings

Interfaces used in Platform 6 UI component.

MIT
Latest version published 5 months ago

Package Health Score

64 / 100
Full package analysis

Popular @amalto/typings functions