wbwdb - v1.2.10
    正在准备搜索索引...

    函数 dbtypeMaker

    • 创建数据库类型定义的工厂函数

      类型参数

      • T

        类型参数

      参数

      • name: string

        类型名称

      • 可选defaultValue: T

      返回 DBTypeDef<T>

      数据库类型定义实例

      const numberType = dbtypeMaker<number>('Number');
      const stringType = dbtypeMaker<string>('String');