-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab74510
commit 2d5fa7e
Showing
4 changed files
with
72 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { ComponentClass } from 'react'; | ||
|
||
interface Routes { | ||
[key: string]: ComponentClass; | ||
} | ||
const routes: Routes; | ||
|
||
export default routes; |
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,27 @@ | ||
interface ColourOption { | ||
value: string; | ||
label: string; | ||
color: string; | ||
isFixed?: boolean; | ||
isDisabled?: boolean; | ||
} | ||
|
||
interface FlavourOption { | ||
value: string; | ||
label: string; | ||
rating: string; | ||
} | ||
|
||
interface GroupedOption { | ||
label: string; | ||
options: ColourOption[] | FlavourOption[]; | ||
} | ||
|
||
interface OptionLength { | ||
value: number; | ||
label: string; | ||
} | ||
|
||
export const colourOptions: ColourOption[]; | ||
export const optionLength: OptionLength[]; | ||
export const groupedOptions: GroupedOption[]; |
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,28 @@ | ||
export interface Data { | ||
key: string; | ||
label: string; | ||
level: number; | ||
path: string; | ||
} | ||
|
||
interface Store { | ||
[key: string]: Data; | ||
} | ||
|
||
interface Headings { | ||
[page: string]: Data[]; | ||
} | ||
|
||
class HeadingStore { | ||
store: Store; | ||
headings: Headings; | ||
|
||
add(key: string, data: Data); | ||
getStore(): Store; | ||
getPageHeadings(page): Data[]; | ||
getAllHeadings(): Headings; | ||
getHeadingByKey(key: string): Data; | ||
} | ||
|
||
const store: HeadingStore; | ||
export default store; |
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,9 @@ | ||
import { Component, CSSProperties } from 'react'; | ||
|
||
interface NoteProps { | ||
Tag: string; | ||
style?: CSSProperties; | ||
} | ||
|
||
export class H1 extends Component {} | ||
export class Note extends Component<NoteProps> {} |