@zipbul/gildash 0.33.0 → 0.34.1

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/README.md CHANGED
@@ -371,6 +371,7 @@ Resolve a type fact for the **expression node exactly spanning** a byte range. `
371
371
  | `getExpressionTypeAtSpan(filePath, span)` | `ResolvedType \| null` | Type of the spanned expression — a call `f()` → result type, `obj.m()` → method return, `obj.prop` → property type (any expression, unlike the identifier-only position lookups) |
372
372
  | `isThenableAtSpan(filePath, span, opts?)` | `boolean \| null` | Whether the spanned expression's type is a thenable (callable `then` with ≥1 param); recurses union/intersection, excludes `any`. `opts.anyConstituent` (default `true`): a union is thenable if **some** member is |
373
373
  | `getContextualCallReturnsAtSpan(filePath, span)` | `ResolvedType[] \| null` | Return types of the contextual type's call signatures at an argument span (overload-selected, `undefined`/`null` stripped). `[]` = not a callable slot; `null` = no contextual type |
374
+ | `isTypeAssignableToTypeAtSpan(filePath, span, target, opts?)` | `boolean \| null` | Whether the spanned expression's type is assignable to a type string `target` (e.g. `'Error'`). Resolves any expression (so `new CustomError()` works, unlike the position resolver). `opts.anyConstituent` for union sources |
374
375
 
375
376
  #### File-level / utilities / diagnostics
376
377