@openpkg-ts/sdk 0.54.6 → 0.54.8

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.
package/dist/index.d.ts CHANGED
@@ -1322,7 +1322,7 @@ declare function getSourceLocation(node: ts4.Node, sourceFile: ts4.SourceFile):
1322
1322
  * - @param {type} paramName - type annotation format
1323
1323
  */
1324
1324
  declare function getParamDescription(propertyName: string, jsdocTags: readonly ts4.JSDocTag[], inferredAlias?: string): string | undefined;
1325
- type DeclarationWithTypeParams = ts4.FunctionDeclaration | ts4.ClassDeclaration | ts4.InterfaceDeclaration | ts4.TypeAliasDeclaration | ts4.MethodDeclaration | ts4.ArrowFunction | ts4.FunctionExpression;
1325
+ type DeclarationWithTypeParams = ts4.FunctionDeclaration | ts4.ClassDeclaration | ts4.InterfaceDeclaration | ts4.TypeAliasDeclaration | ts4.MethodDeclaration | ts4.ArrowFunction | ts4.FunctionExpression | ts4.FunctionTypeNode;
1326
1326
  /**
1327
1327
  * Extract type parameters from declarations like `<T extends Base, K = Default>`
1328
1328
  * Also captures variance annotations (in/out) and const modifier.
@@ -1843,7 +1843,10 @@ import ts10 from "typescript";
1843
1843
  declare function serializeEnum(node: ts10.EnumDeclaration, ctx: SerializerContext): SpecExport13 | null;
1844
1844
  import { SpecExport as SpecExport14 } from "@openpkg-ts/spec";
1845
1845
  import ts11 from "typescript";
1846
- declare function serializeFunctionExport(node: ts11.FunctionDeclaration | ts11.ArrowFunction | ts11.FunctionExpression, ctx: SerializerContext, nameOverride?: string): SpecExport14 | null;
1846
+ /**
1847
+ * @param declaredType - Written annotation of the variable holding `node`; when callable it supplies the signatures.
1848
+ */
1849
+ declare function serializeFunctionExport(node: ts11.FunctionDeclaration | ts11.ArrowFunction | ts11.FunctionExpression, ctx: SerializerContext, nameOverride?: string, declaredType?: ts11.TypeNode): SpecExport14 | null;
1847
1850
  import { SpecExport as SpecExport15 } from "@openpkg-ts/spec";
1848
1851
  import ts12 from "typescript";
1849
1852
  declare function serializeInterface(node: ts12.InterfaceDeclaration, ctx: SerializerContext): SpecExport15 | null;
@@ -1852,7 +1855,11 @@ import ts13 from "typescript";
1852
1855
  declare function serializeTypeAlias(node: ts13.TypeAliasDeclaration, ctx: SerializerContext): SpecExport16 | null;
1853
1856
  import { SpecExport as SpecExport17 } from "@openpkg-ts/spec";
1854
1857
  import ts14 from "typescript";
1855
- declare function serializeVariable(node: ts14.VariableDeclaration, statement: ts14.VariableStatement, ctx: SerializerContext): SpecExport17 | null;
1858
+ /**
1859
+ * @param node - The declaration, or the binding element for names bound by
1860
+ * destructuring (`const [a, { b }] = init`); the checker types each binding.
1861
+ */
1862
+ declare function serializeVariable(node: ts14.VariableDeclaration | ts14.BindingElement, statement: ts14.VariableStatement, ctx: SerializerContext): SpecExport17 | null;
1856
1863
  import { SpecSignatureParameter } from "@openpkg-ts/spec";
1857
1864
  import ts15 from "typescript";
1858
1865
  declare function extractParameters(signature: ts15.Signature, ctx: SerializerContext): SpecSignatureParameter[];