Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to add types of a chance mixin

const chance = new Chance() as Chance.Chance & ITime;
chance.mixin(time as any); // no error
chance.time(); // no error now I hope
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #types #chance #mixin
ADD COMMENT
Topic
Name
1+1 =