Add TypeScript signature to documentation