@prismshadow/penguin-core/kernel · Manifest & Static Verification

extendsExpr

function low-level
Source ↗
IMPORT import { extendsExpr } from "@prismshadow/penguin-core/kernel";

a ⊆ b over the shapes of TypeExpr; data goes to arktype, interfaces recurse through the table.

Declaration

export function extendsExpr(
  a: TypeExpr,
  b: TypeExpr,
  table: TableLike = {},
  seen: Set<string> = new Set(),
): boolean

Parameters & Return

a

TypeExpr

b

TypeExpr

table?

TableLike
default{}

seen?

Set<string>
defaultnew Set()

@returns

boolean