import { Task , operators } from '@ts-task/task' ; const { map , chain } = operators ; const t1 = Task . resolve ( 9 ) ; const p1 = t1 . pipe ( map ( x => '' + x ) ) ; p1 ; const p2 = t1 . pipe ( chain ( _ => Task . reject ( 'buu' ) ) ) ; p2 ;