proposal-type-annotations

(★ 4,386)

ECMAScript proposal for type syntax that is erased - Stage 1

File Explorer

  • CODEOWNERS
  • README.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

interface

View Details ▼

Manage interfaces.
Accessed in configuration mode.

interface vlan {{1}}

Configure a VLAN:

{{no shutdown|shutdown}}

Set an interface to be active or inactive (this is run inside the interface command):

🔍

declare

View Details ▼

Declare variables and give them attributes.

declare {{variable}}="{{value}}"

Declare a string variable with the specified value:

declare -i {{variable}}="{{value}}"

Declare an integer variable with the specified value:

declare -a {{variable}}=({{item_a item_b item_c}})

Declare an array variable with the specified value:

🔍

readonly

View Details ▼

Set read-only shell variables.

readonly {{variable_name}}={{value}}

Set a read-only variable:

readonly {{existing_variable}}

Mark a variable as read-only:

readonly -p

[p]rint the names and values of all read-only variables to `stdout`:

🔍

strings

View Details ▼

Find printable strings in an object file or binary.

strings {{path/to/file}}

Print all strings in a binary:

strings {{[-n|--bytes]}} {{n}} {{path/to/file}}

Limit results to strings at least n characters long:

strings {{[-t|--radix]}} d {{path/to/file}}

Prefix each result with its offset within the file:

🔍

tsc

View Details ▼

TypeScript compiler.

tsc --init

Initialize a TypeScript project:

tsc {{path/to/file.ts}}

Compile a TypeScript file into a JavaScript file with the same name:

tsc {{[-t|--target]}} {{ES5|ES2015|ES2016|ES2017|ES2018|ESNEXT|...}} {{path/to/file.ts}}

Compile a TypeScript file into JavaScript using a specific target syntax (default is `ES3`):

// repository documentation