Define TypeScript for StringJs