more global API definition for TypeScript