Skip to content
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

少しマシにした #1

Closed
wants to merge 3 commits into from
Closed

少しマシにした #1

wants to merge 3 commits into from

Conversation

resessh
Copy link

@resessh resessh commented Mar 28, 2019

  1. cliちょっと整えた

    $ yarn install
    $ yarn build

    でビルドされる。

    別cliプロセスで

    $ yarn start

    とかするとサーバが立つ

  2. sw周りのtypingをマシにした

@@ -1,4 +1,7 @@
self.addEventListener('notificationclick', (event: NotificationEvent) => {
export declare var self: ServiceWorkerGlobalScope;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

selfが WorkerGlobalScope になってしまうのでうわがく

参考: microsoft/TypeScript#14877 (comment)

/* Basic Options */
"target": "esnext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
"module": "esnext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"lib": ["esnext", "webworker"], /* Specify library files to be included in the compilation. */
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"webworker" が "dom" と競合するので tsconfig 自体を分けた

Copy link

@RyoNkmr RyoNkmr Mar 29, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"webworker" が "dom" と競合する

これ流石におかしいとおもうんだよなー

@RyoNkmr RyoNkmr mentioned this pull request Mar 29, 2019
@resessh resessh closed this Feb 15, 2020
@resessh resessh deleted the resessh branch February 15, 2020 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants