Skip to content

Commit

Permalink
Cast fix
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Steren <[email protected]>
  • Loading branch information
bdemann and dansteren committed Nov 2, 2023
1 parent 2e1b4a2 commit 63cd7d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions property_tests/arbitraries/candid/candid_type_arb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type CandidType =
*
* **Note:** This currently only supports ints, nats, and null arbitraries
*/
export const CandidTypeArb = fc.oneof(
export const CandidTypeArb: fc.Arbitrary<Candid<CandidType>> = fc.oneof(
Float32Arb,
Float64Arb,
IntArb,
Expand All @@ -51,5 +51,5 @@ export const CandidTypeArb = fc.oneof(
TextArb,
PrincipalArb,
BlobArb
) as fc.Arbitrary<Candid<CandidType>>;
);
// TODO: This needs to support ALL valid candid types, including records, variants, etc.

0 comments on commit 63cd7d5

Please sign in to comment.