Skip to content

⬅️ Back to Table of Contents

📄 TSMappedType/spec

📊 Analysis Summary

Metric Count
📦 Imports 5
📐 Interfaces 1

📚 Table of Contents

🛠️ File Location:

📂 packages/ast-spec/src/type/TSMappedType/spec.ts

📦 Imports

Name Source
AST_NODE_TYPES ../../ast-node-types
BaseNode ../../base/BaseNode
Identifier ../../expression/Identifier/spec
TSTypeParameter ../../special/TSTypeParameter/spec
TypeNode ../../unions/TypeNode

Interfaces

TSMappedType

Interface Code
export interface TSMappedType extends BaseNode {
  type: AST_NODE_TYPES.TSMappedType;
  constraint: TypeNode;
  key: Identifier;
  nameType: TypeNode | null;
  optional: boolean | '+' | '-' | undefined;
  readonly: boolean | '+' | '-' | undefined;
  typeAnnotation: TypeNode | undefined;
  /** @deprecated Use {@link `constraint`} and {@link `key`} instead. */
  typeParameter: TSTypeParameter;
}

Properties

Name Type Optional Description
type AST_NODE_TYPES.TSMappedType not shown
constraint TypeNode not shown
key Identifier not shown
nameType TypeNode \| null not shown
optional boolean \| '+' \| '-' \| undefined not shown
readonly boolean \| '+' \| '-' \| undefined not shown
typeAnnotation TypeNode \| undefined not shown
typeParameter TSTypeParameter not shown

Generated by Syntax Scribe