This document is a proposal for the typescript language and the Deno runtime as an official programming language in Deriv.
TypeScript is an open-source language which builds on JavaScript, by adding static type definitions.
| map d removeTab | |
| map u restoreTab | |
| map l nextTab | |
| map h previousTab | |
| map t Vomnibar.activateInNewTab | |
| map <c-o> goBack | |
| map <c-i> goForward | |
| map ;y LinkHints.activateCopyLinkUrl | |
| map gp togglePinTab | |
| map zi zoomIn |
This document is a proposal for the typescript language and the Deno runtime as an official programming language in Deriv.
TypeScript is an open-source language which builds on JavaScript, by adding static type definitions.
| import { open, save, DB } from "https://deno.land/x/sqlite/mod.ts"; | |
| class Database { | |
| private constructor(private db: DB) { } | |
| static async connect(path : string) { | |
| return new Database(await open(path)); | |
| } | |
| execute(query: string, values : object = {}) { |
| set noautofocus | |
| set numerichints | |
| set typelinkhints | |
| "let barposition = "bottom" | |
| let scrollstep = 240 | |
| let searchlimit = 10 | |
| let scrollduration = 100 | |
| set smoothscroll | |
| map H scrollLeft | |
| map L scrollRight |
| atom.commands.add 'atom-text-editor', | |
| 'editor:toggle-folding': (event) -> | |
| editor = @getModel() | |
| bufferRow = editor.bufferPositionForScreenPosition(editor.getCursorScreenPosition()).row | |
| if editor.isFoldedAtBufferRow(bufferRow) | |
| editor.unfoldBufferRow(bufferRow) | |
| else | |
| editor.foldBufferRow(bufferRow) |
| 'atom-text-editor.vim-mode:not(.insert-mode)': | |
| 'L': 'pane:show-next-item' | |
| 'H': 'pane:show-previous-item' | |
| ', w': 'core:save' | |
| ', q': 'core:close', | |
| 'z a': 'editor:toggle-folding' | |
| 'z m': 'editor:unfold-all' | |
| ', t': 'you-complete-me:get-type' | |
| ', g': 'you-complete-me:go-to' |
| [ | |
| /***** VINTAGE KEYMAPS *****/ | |
| { "keys": ["H"], "command": "prev_view", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] }, | |
| { "keys": ["L"], "command": "next_view", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] }, | |
| { "keys": [",","q"], "command": "close", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] }, | |
| { "keys": [",","w"], "command": "save", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] }, | |
| { "keys": [",","c"], "command": "toggle_comment", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] }, | |
| { "keys": [",",","], "command": "reindent", "args": { "single_line": false } , "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": fals |