Skip to content

Commit

Permalink
Merge pull request #4 from hippware/dep5
Browse files Browse the repository at this point in the history
WIP: improvements
  • Loading branch information
aksonov committed Jan 19, 2018
2 parents a5bfdde + 72a6295 commit 0bbbab9
Show file tree
Hide file tree
Showing 13 changed files with 64 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "0.1.0",
"command": "tsc",
"command": "node_modules/typescript/bin/tsc",
"isShellCommand": true,
"args": ["-w", "-p", "."],
"showOutput": "silent",
Expand Down
26 changes: 12 additions & 14 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export declare const Wocky: IModelType<{
} & {
profile: ({
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -73,6 +72,7 @@ export declare const Wocky: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down Expand Up @@ -108,7 +108,6 @@ export declare const Wocky: IModelType<{
}) | null;
profiles: IExtendedObservableMap<{
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -122,6 +121,7 @@ export declare const Wocky: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down Expand Up @@ -154,7 +154,6 @@ export declare const Wocky: IModelType<{
}> & ISnapshottable<{
[key: string]: {
id?: any;
avatar?: any;
handle?: any;
firstName?: any;
lastName?: any;
Expand All @@ -172,7 +171,6 @@ export declare const Wocky: IModelType<{
} & {
registerProfile: (profile: {
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -186,6 +184,7 @@ export declare const Wocky: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down Expand Up @@ -217,7 +216,6 @@ export declare const Wocky: IModelType<{
readonly $treenode?: any;
}) => {
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -231,6 +229,7 @@ export declare const Wocky: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down Expand Up @@ -263,9 +262,8 @@ export declare const Wocky: IModelType<{
};
unregisterProfile: (user: string) => boolean;
} & {
create(id: string, data: any): {
createProfile(id: string, data: any): {
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -279,6 +277,7 @@ export declare const Wocky: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down Expand Up @@ -321,7 +320,6 @@ export declare const Wocky: IModelType<{
} & {
roster: IObservableArray<{
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -335,6 +333,7 @@ export declare const Wocky: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down Expand Up @@ -375,7 +374,6 @@ export declare const Wocky: IModelType<{
onPresence: (stanza: any) => void;
follow: (a1: {
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -389,6 +387,7 @@ export declare const Wocky: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down Expand Up @@ -421,7 +420,6 @@ export declare const Wocky: IModelType<{
}) => Promise<any>;
unfollow: (a1: {
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -435,6 +433,7 @@ export declare const Wocky: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down Expand Up @@ -467,7 +466,6 @@ export declare const Wocky: IModelType<{
}) => Promise<any>;
block: (a1: {
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -481,6 +479,7 @@ export declare const Wocky: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down Expand Up @@ -513,7 +512,6 @@ export declare const Wocky: IModelType<{
}) => Promise<any>;
unblock: (a1: {
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -527,6 +525,7 @@ export declare const Wocky: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down Expand Up @@ -564,7 +563,6 @@ export declare const Wocky: IModelType<{
}>;
export declare const Profile: IModelType<{
id?: any;
avatar?: any;
handle?: any;
firstName?: any;
lastName?: any;
Expand All @@ -579,7 +577,6 @@ export declare const Profile: IModelType<{
roles?: any;
}, {
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -593,6 +590,7 @@ export declare const Profile: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down
6 changes: 2 additions & 4 deletions lib/model.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export declare const Image: IModelType<{
}>;
export declare const Profile: IModelType<{
id?: any;
avatar?: any;
handle?: any;
firstName?: any;
lastName?: any;
Expand All @@ -30,7 +29,6 @@ export declare const Profile: IModelType<{
roles?: any;
}, {
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -44,6 +42,7 @@ export declare const Profile: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down Expand Up @@ -74,7 +73,6 @@ export declare const Profile: IModelType<{
}>;
export declare const OwnProfile: IModelType<{
id?: any;
avatar?: any;
handle?: any;
firstName?: any;
lastName?: any;
Expand All @@ -92,7 +90,6 @@ export declare const OwnProfile: IModelType<{
phoneNumber?: any;
}, {
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -106,6 +103,7 @@ export declare const OwnProfile: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down
9 changes: 8 additions & 1 deletion lib/model.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/model.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions lib/profile.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ declare const profileStore: IModelType<{
} & {
profile: ({
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -65,6 +64,7 @@ declare const profileStore: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down Expand Up @@ -100,7 +100,6 @@ declare const profileStore: IModelType<{
}) | null;
profiles: IExtendedObservableMap<{
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -114,6 +113,7 @@ declare const profileStore: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down Expand Up @@ -146,7 +146,6 @@ declare const profileStore: IModelType<{
}> & ISnapshottable<{
[key: string]: {
id?: any;
avatar?: any;
handle?: any;
firstName?: any;
lastName?: any;
Expand All @@ -164,7 +163,6 @@ declare const profileStore: IModelType<{
} & {
registerProfile: (profile: {
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -178,6 +176,7 @@ declare const profileStore: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down Expand Up @@ -209,7 +208,6 @@ declare const profileStore: IModelType<{
readonly $treenode?: any;
}) => {
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -223,6 +221,7 @@ declare const profileStore: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down Expand Up @@ -255,9 +254,8 @@ declare const profileStore: IModelType<{
};
unregisterProfile: (user: string) => boolean;
} & {
create(id: string, data: any): {
createProfile(id: string, data: any): {
id: string;
avatar: string;
handle: string;
firstName: string;
lastName: string;
Expand All @@ -271,6 +269,7 @@ declare const profileStore: IModelType<{
botsSize: number;
roles: IObservableArray<string> & ISnapshottable<string[]>;
} & {
readonly isOwn: boolean;
readonly followers: {
result: never[];
loading: boolean;
Expand Down
4 changes: 2 additions & 2 deletions lib/profile.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0bbbab9

Please sign in to comment.