-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix a few things, change tsc check to have options
- Loading branch information
Showing
7 changed files
with
22 additions
and
33 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
6 changes: 2 additions & 4 deletions
6
examples/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
type rec_0 = record {desc:text; phone:text}; | ||
type rec_1 = record {desc:text; phone:text}; | ||
service: () -> { | ||
insert: (text, rec_0) -> (); | ||
lookup: (text) -> (opt rec_1) query; | ||
insert: (text, record {desc:text; phone:text}) -> (); | ||
lookup: (text) -> (opt record {desc:text; phone:text}) query; | ||
} |
12 changes: 2 additions & 10 deletions
12
examples/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.d.ts
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 |
---|---|---|
@@ -1,15 +1,7 @@ | ||
import type { Principal } from '@dfinity/principal'; | ||
import type { ActorMethod } from '@dfinity/agent'; | ||
|
||
export interface rec_0 { | ||
desc: string; | ||
phone: string; | ||
} | ||
export interface rec_1 { | ||
desc: string; | ||
phone: string; | ||
} | ||
export interface _SERVICE { | ||
insert: ActorMethod<[string, rec_0], undefined>; | ||
lookup: ActorMethod<[string], [] | [rec_1]>; | ||
insert: ActorMethod<[string, { desc: string; phone: string }], undefined>; | ||
lookup: ActorMethod<[string], [] | [{ desc: string; phone: string }]>; | ||
} |
14 changes: 10 additions & 4 deletions
14
examples/motoko_examples/phone-book/src/declarations/phone_book/phone_book.did.js
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
type rec_0 = record {desc:text; phone:text}; | ||
type rec_1 = record {desc:text; phone:text}; | ||
service: () -> { | ||
insert: (text, rec_0) -> (); | ||
lookup: (text) -> (opt rec_1) query; | ||
insert: (text, record {desc:text; phone:text}) -> (); | ||
lookup: (text) -> (opt record {desc:text; phone:text}) query; | ||
} |
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