You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert

8
+
9
+
## What is this?
10
+
This is a repository that houses getting-started materials and demo files for [the `code-input` library](https://github.com/WebCoder49/code-input)'s TypeScript bindings (`.d.ts` files). Here's how to get started with TypeScript and code-input:
11
+
### 1. Set up TypeScript
12
+
* Install [node.js]().
13
+
* Install [NPM Package Manager]().
14
+
* In a terminal / command line, type `npm install -g typescript`.
15
+
### 2. Set up Code-Input with your project.
16
+
* Clone all of the files in this repository into a folder, including the `code-input` library.
17
+
* Uncomment one of the demo JS files in the `<head>` of `index.html`.
18
+
### 3. Run the project.
19
+
* Edit the corresponding demo TypeScript file if wanted.
20
+
* Compile the TypeScript with the command: `tsc`
21
+
## For descriptions of library functionality, please see [the main `code-input` library](https://github.com/WebCoder49/code-input) or [the TypeScript declaration comments](https://github.com/WebCoder49/code-input/blob/main/code-input.d.ts).
/* Runs when an attribute of a `code-input` is changed (you must add the attribute name to the constructor); Params: codeInput element, name attribute name, oldValue previous value of attribute, newValue changed value of attribute) */
0 commit comments