Skip to content

Commit ce13955

Browse files
committed
Changes in preparation for talk
1 parent e411ceb commit ce13955

File tree

11 files changed

+29
-15
lines changed

11 files changed

+29
-15
lines changed
Loading
Loading
Loading
Loading
Loading

typescript-js-ecosystem/application-3/application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ const result1 = _.head([1, 2, 3, 4]);
44
console.log(result1);
55
// => 1
66

7-
const result2 = _.head([]);
7+
const result2 = _.haed([]);
88
console.log(result2);
99
// => undefined

typescript-js-ecosystem/application-4/application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ const result1 = _.head([1, 2, 3, 4]);
44
console.log(result1);
55
// => 1
66

7-
const result2 = _.head([]);
7+
const result2 = _.haed([]);
88
console.log(result2);
99
// => undefined
Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
import * as _ from 'lodash';
1+
import * as lightDesk from '@synesthesia-project/light-desk';
22

3-
const result1 = _.head([1, 2, 3, 4]);
4-
console.log(result1);
5-
// => 1
3+
function buttonPressed() {
4+
console.log("The button was pressed!");
5+
}
66

7-
const result2 = _.head([]);
8-
console.log(result2);
9-
// => undefined
7+
const desk = new lightDesk.LightDesk();
8+
9+
// Create the root "group" for your desk, which new components can be added to
10+
const group = new lightDesk.Group();
11+
desk.setRoot(group);
12+
13+
// Create a button that calls buttonPressed(),
14+
const button = new lightDesk.Button("Hello World");
15+
group.addChild(button);
16+
button.addListener(buttonPressed);

typescript-js-ecosystem/application-5/package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typescript-js-ecosystem/application-5/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"main": "index.js",
55
"license": "MIT",
66
"dependencies": {
7-
"@types/lodash": "^4.14.136",
87
"typescript": "^3.5.3"
98
}
109
}

typescript-js-ecosystem/application-5/yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
# yarn lockfile v1
33

44

5-
"@types/lodash@^4.14.136":
6-
version "4.14.136"
7-
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.136.tgz#413e85089046b865d960c9ff1d400e04c31ab60f"
8-
integrity sha512-0GJhzBdvsW2RUccNHOBkabI8HZVdOXmXbXhuKlDEd5Vv12P7oAVGfomGp3Ne21o5D/qu1WmthlNKFaoZJJeErA==
9-
105
typescript@^3.5.3:
116
version "3.5.3"
127
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.3.tgz#c830f657f93f1ea846819e929092f5fe5983e977"

0 commit comments

Comments
 (0)