_unstable_getVersion 实验性
这是一个实验性的函数示例,用于获取当前包的版本号。
示例
基本用法
当 Promise 成功时,返回 [null, data]
。
typescript
import { _unstable_getVersion } from '@esdora/packages/kit/experimental'
const version = await _unstable_getVersion()
// => 0.2.0
签名与说明
typescript
/**
* @experimental
*
* 这是一个实验性的函数**示例**,用于获取当前包的版本号。
*
* @returns 当前包的版本号
*/
export function _unstable_getVersion(): string {}
注意事项与边界情况
该函数只是作为示例,实际上并无作用。