Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

type async function typescript

interface SearchFn {
    (subString: string): Promise<boolean>;
}
// or as a type declaration:
type SearchFn = (subString: string) => Promise<boolean>;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #type #async #function #typescript
ADD COMMENT
Topic
Name
5+4 =