JSAPI Samples in Typescript