16 行
480 B
TypeScript
16 行
480 B
TypeScript
|
|
import { initConfig, isInitialized, type XuqmInitOptions } from './config'
|
||
|
|
|
||
|
|
export const XuqmSDK = {
|
||
|
|
/**
|
||
|
|
* Initialize the SDK. Must be called once before using any module.
|
||
|
|
*
|
||
|
|
* @param options.appId - Your application ID (from the tenant platform)
|
||
|
|
* @param options.appKey - Optional; defaults to appId
|
||
|
|
* @param options.debug - Enable verbose logging
|
||
|
|
*/
|
||
|
|
init(options: XuqmInitOptions): void {
|
||
|
|
if (isInitialized()) return
|
||
|
|
initConfig(options)
|
||
|
|
},
|
||
|
|
}
|