import { AsyncTask } from '../async-task.class'; /** * A contraint on the value of an AsyncTask: * It cannot be another AsyncTask, and it cannot be a Promise. */ export type IAsyncTaskConstraint = (0 extends (1 & GValue) ? any : (AsyncTask extends GValue ? never : (Promise extends GValue ? never : ([ GValue ] extends [GKind] ? any : never))));