-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update for tsconfig, types and npm config
- Loading branch information
1 parent
1d0aef4
commit 83f7d4b
Showing
19 changed files
with
83 additions
and
74 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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,20 @@ | ||
import { ReactElement } from 'react'; | ||
|
||
export interface KVEditConfigType { | ||
typeNotation?: string; | ||
nested?: boolean; | ||
validateKey?: RegExp; | ||
theme?: string; | ||
} | ||
export interface KVEditorPropsType { | ||
items?: KVItemType[]; | ||
options?: KVEditConfigType; | ||
onChange?: (state: any) => void; | ||
} | ||
export interface KVEditorType { | ||
(props: KVEditorPropsType): ReactElement; | ||
} | ||
export interface KVItemType { | ||
key: string; | ||
value: any; | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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,13 @@ | ||
import { Dispatch, Reducer, ReducerAction } from 'react'; | ||
import { KVAction, KVState } from '@base/src/hooks/KVReducer.types'; | ||
import { KVEditConfigType, KVItemType } from '@base/src/components/KVEditor/KVEditor.types'; | ||
|
||
export interface KVItemEditPropsType { | ||
dispatch: Dispatch<ReducerAction<Reducer<KVState, KVAction>>>; | ||
keys: string[]; | ||
editorOptions: KVEditConfigType; | ||
item?: KVItemType; | ||
} | ||
export interface KVItemEditType { | ||
(props: KVItemEditPropsType): JSX.Element; | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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,13 @@ | ||
import { Dispatch, Reducer, ReducerAction } from 'react'; | ||
import { KVEditConfigType, KVItemType } from '@base/src/components/KVEditor/KVEditor.types'; | ||
import { KVAction, KVState } from '@base/src/hooks/KVReducer.types'; | ||
|
||
export interface KVItemViewPropsType { | ||
dispatch: Dispatch<ReducerAction<Reducer<KVState, KVAction>>>; | ||
item: KVItemType; | ||
editorOptions: KVEditConfigType; | ||
viewOptions: any; | ||
} | ||
export interface KVItemViewType { | ||
(props: KVItemViewPropsType): JSX.Element; | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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,16 @@ | ||
import { KVItemType } from '@base/src/components/KVEditor/KVEditor.types'; | ||
|
||
export interface KVState { | ||
items: KVItemType[]; | ||
keys: string[]; | ||
} | ||
export interface KVActionBase { | ||
type: string; | ||
} | ||
export interface KVActionAdd extends KVActionBase { | ||
item?: KVItemType; | ||
} | ||
export interface KVActionRemove extends KVActionBase { | ||
key?: string; | ||
} | ||
export interface KVAction extends KVActionAdd, KVActionRemove {} |
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.