1.4.6 • Published 6 months ago

@types/codeflask v1.4.6

Weekly downloads
1,935
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/codeflask

Summary

This package contains type definitions for codeflask (https://kazzkiq.github.io/CodeFlask/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/codeflask.

index.d.ts

// Type definitions for codeflask 1.4
// Project: https://kazzkiq.github.io/CodeFlask/
// Definitions by: Joachim Holwech <https://github.com/holwech>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import { Languages } from 'prismjs';

declare class CodeFlask {
    constructor(selectorOrElement: string | HTMLElement, opts: CodeFlask.options);
    onUpdate(callback: (code: string) => void): void;
    updateCode(newCode: string): void;
    getCode(): string;
    addLanguage(name: string, options: Languages): void;
}

export = CodeFlask;

declare namespace CodeFlask {
    interface options {
        language?: string | undefined;
        rtl?: boolean | undefined;
        tabSize?: number | undefined;
        enableAutocorrect?: boolean | undefined;
        lineNumbers?: boolean | undefined;
        defaultTheme?: boolean | undefined;
        areaId?: string | undefined;
        ariaLabelledby?: string | undefined;
        readonly?: boolean | undefined;
        handleTabs?: boolean | undefined;
        handleSelfClosingCharacters?: boolean | undefined;
        handleNewLineIndentation?: boolean | undefined;
        styleParent?: ShadowRoot | undefined;
    }
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 09:08:00 GMT
  • Dependencies: @types/prismjs
  • Global values: none

Credits

These definitions were written by Joachim Holwech.

1.4.6

6 months ago

1.4.5

7 months ago

1.4.4

8 months ago

1.4.3

3 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

5 years ago