This repository was archived by the owner on Oct 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
feat: add type definition #4
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| module.exports = { | ||
| plugins: ['vue', 'prettier'], | ||
| extends: ['tui/es6', 'plugin:vue/base', 'plugin:prettier/recommended'], | ||
| parserOptions: { | ||
| parser: 'babel-eslint', | ||
| ecmaVersion: 7, | ||
| sourceType: 'module' | ||
| } | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "printWidth": 100, | ||
| "singleQuote": true, | ||
| "bracketSpacing": false, | ||
| "arrowParens": "always" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import Vue from 'vue'; | ||
| import TuiGrid from 'tui-grid'; | ||
|
|
||
| type FunctionKeys<T extends object> = {[K in keyof T]: T[K] extends Function ? K : never}[keyof T]; | ||
|
|
||
| type GridFnKeys = FunctionKeys<TuiGrid>; | ||
|
|
||
| export declare class Grid extends Vue { | ||
| invoke<T extends GridFnKeys>(fname: T, ...args: Parameters<TuiGrid[T]>): ReturnType<TuiGrid[T]>; | ||
| getRootElement(): HTMLElement; | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
package-lock.js의 version도 함께 바껴야할 것 같습니다.
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.
이거 반영하긴 했는데..
생각해보니
package-lock.json버전은 매번 업데이트 하면 안되겠네요.이 파일은 직접 관리하는 파일이 아니라 자동 생성되는 파일이라서 수동으로 수정하면 안될 것 같아요.
이 패키지의 버전이 올라가도 디펜던시가 추가되거나 업데이트 된 게 아니라면 그대로 유지하는 게 맞는 것 같습니다.