Skip to content

Commit

Permalink
More stash
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed Jul 27, 2020
1 parent ab74510 commit 2d5fa7e
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/App/routes.d.ts
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;
27 changes: 27 additions & 0 deletions docs/data.d.ts
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[];
28 changes: 28 additions & 0 deletions docs/markdown/store.d.ts
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;
9 changes: 9 additions & 0 deletions docs/styled-components.d.ts
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> {}

0 comments on commit 2d5fa7e

Please sign in to comment.