@types/codeflask
Advanced tools
Comparing version
@@ -9,4 +9,4 @@ // Type definitions for codeflask 1.4 | ||
export default class CodeFlask { | ||
constructor(selectorOrElement: string | HTMLElement, opts: options); | ||
declare class CodeFlask { | ||
constructor(selectorOrElement: string | HTMLElement, opts: CodeFlask.options); | ||
onUpdate(callback: (code: string) => void): void; | ||
@@ -18,15 +18,19 @@ updateCode(newCode: string): void; | ||
export interface options { | ||
language?: string; | ||
rtl?: boolean; | ||
tabSize?: number; | ||
enableAutocorrect?: boolean; | ||
lineNumbers?: boolean; | ||
defaultTheme?: boolean; | ||
areaId?: string; | ||
ariaLabelledby?: string; | ||
readonly?: boolean; | ||
handleTabs?: boolean; | ||
handleSelfClosingCharacters?: boolean; | ||
handleNewLineIndentation?: boolean; | ||
export = CodeFlask; | ||
declare namespace CodeFlask { | ||
interface options { | ||
language?: string; | ||
rtl?: boolean; | ||
tabSize?: number; | ||
enableAutocorrect?: boolean; | ||
lineNumbers?: boolean; | ||
defaultTheme?: boolean; | ||
areaId?: string; | ||
ariaLabelledby?: string; | ||
readonly?: boolean; | ||
handleTabs?: boolean; | ||
handleSelfClosingCharacters?: boolean; | ||
handleNewLineIndentation?: boolean; | ||
} | ||
} |
{ | ||
"name": "@types/codeflask", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "TypeScript definitions for codeflask", | ||
@@ -14,3 +14,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -25,4 +25,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "5e4d7bb5a288293c3730d2ea7511acb96368460aa12ef0a2af540f227e171b4f", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "302fd45db438cb9cd4a6e62c59c855065254843b6e402b17358d6c63e7cbc006", | ||
"typeScriptVersion": "3.0" | ||
} |
@@ -8,10 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/codeflask | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/codeflask. | ||
Additional Details | ||
* Last updated: Fri, 01 Nov 2019 22:14:19 GMT | ||
* Dependencies: @types/prismjs | ||
### Additional Details | ||
* Last updated: Mon, 18 May 2020 16:30:06 GMT | ||
* Dependencies: [@types/prismjs](https://npmjs.com/package/@types/prismjs) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Joachim Holwech <https://github.com/holwech>. | ||
These definitions were written by [Joachim Holwech](https://github.com/holwech). |
Sorry, the diff of this file is not supported yet
3461
3.53%30
11.11%