defineWorkspace
defineWorkspace<
T>(input):T
Defined in: core/src/workspace.ts:93
Vitest 식 identity 헬퍼. 입력을 그대로 반환 — 타입 추론 / IDE 자동완성을 위해 존재.
Type Parameters
섹션 제목: “Type Parameters”T extends WorkspaceInput
Parameters
섹션 제목: “Parameters”input
섹션 제목: “input”T
workspace 정의 — 배열 또는 함수형
Returns
섹션 제목: “Returns”T
입력 그대로 (런타임 변경 없음)
Example
섹션 제목: “Example”import { defineWorkspace } from "@zntc/core";
export default defineWorkspace([ "./packages/*", { name: "shared", entryPoints: ["./shared/index.ts"] },]);