@openpkg-ts/sdk 0.54.10 → 0.54.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +5 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3066,6 +3066,7 @@ var BUILTIN_GENERICS = new Set([
3066
3066
  "AsyncIterableIterator",
3067
3067
  "Generator",
3068
3068
  "AsyncGenerator",
3069
+ "ArrayLike",
3069
3070
  "Partial",
3070
3071
  "Required",
3071
3072
  "Readonly",
@@ -3210,6 +3211,7 @@ var BUILTIN_TYPES = new Set([
3210
3211
  "Error",
3211
3212
  "Function",
3212
3213
  "ArrayBuffer",
3214
+ "ArrayBufferLike",
3213
3215
  "SharedArrayBuffer",
3214
3216
  "DataView",
3215
3217
  "Uint8Array",
@@ -3656,6 +3658,9 @@ function buildSchemaInternal(type, checker, ctx, typeNode) {
3656
3658
  }
3657
3659
  if (type.aliasSymbol && !type.aliasTypeArguments?.length) {
3658
3660
  const aliasName = type.aliasSymbol.getName();
3661
+ if ((BUILTIN_TYPES.has(aliasName) || isBuiltinGeneric(aliasName)) && isBuiltinSymbol(type.aliasSymbol)) {
3662
+ return builtinSchema(aliasName);
3663
+ }
3659
3664
  if (!aliasName.startsWith("__") && !isPrimitiveName(aliasName)) {
3660
3665
  const packageOrigin = getTypeOrigin(type, checker);
3661
3666
  const schema = { $ref: `#/types/${namedRefId(type, aliasName, ctx)}` };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openpkg-ts/sdk",
3
- "version": "0.54.10",
3
+ "version": "0.54.11",
4
4
  "description": "TypeScript API extraction SDK - programmatic primitives for OpenPkg specs",
5
5
  "keywords": [
6
6
  "openpkg",