-
Notifications
You must be signed in to change notification settings - Fork 24
Move typescript to a peer dependency #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
de6ded9
3134817
81edec3
15edc37
94972fb
bccc957
ba7b625
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| declare const _default: {}; | ||
| export default _default; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| import B from "./b"; | ||
| export default class A { | ||
| private b; | ||
| private name; | ||
| static create(name: string): A; | ||
| constructor(b: B, name: string); | ||
| hello(): void; | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import C from "./c"; | ||
| export default class B { | ||
| private c; | ||
| constructor(c: C); | ||
| hello(to: string): string; | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default class C { | ||
| shout(msg: any): string; | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| export { default as A } from "./a"; | ||
| export { default as B } from "./b"; | ||
| export { default as C } from "./c"; | ||
| export { default as CapitalizedComponent } from "./Components/CapitalizedComponent"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export default function countDown(c: number): void; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export { default as countDown } from "./count-down"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| onmessage = function (evt) { | ||
| if (evt.data.cmd === "read") { | ||
| var reader = new FileReaderSync(); | ||
| var file = evt.data.file; | ||
| var data = reader.readAsArrayBuffer(file); | ||
| postMessage({ cmd: "data", data: data }, [data]); | ||
| } | ||
| }; | ||
| onerror = function (evt) { | ||
| postMessage({ cmd: "error", error: evt.error }); | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wagenet I may be wrong, but this not gonna make any difference as still will install
typescript@4.0.3by npm 7+It's technically the same as replacing
"typescript": "~4.0.3"with"typescript": "^4.0.3".To truly decouple
typescriptversion frombroccoli-typescript-compiler, maybe you meant to make thisThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SergeAstapov ah, you may be correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is that this means that, if a newer compatible version is installed, it will use that one. So this should be correct. I've been having some trouble validating it in practice either way.