@azure-tools/typespec-powershell
Version:
An experimental TypeSpec emitter for PowerShell codegen
24 lines (19 loc) • 614 B
text/typescript
import {
SdkClient,
SdkContext,
listOperationGroups,
listOperationsInOperationGroup
} from "@azure-tools/typespec-client-generator-core";
import { ignoreDiagnostics, Model, Program, Type } from "@typespec/compiler";
import { getHttpOperation, HttpOperation } from "@typespec/http";
import {
hasPagingOperations
} from "../utils/operationUtil.js";
import { listOperations } from "./clientUtils.js";
const pageableOperationsKey = Symbol("pageable");
export function getPageable(
program: Program,
entity: Type
): string | undefined {
return program.stateMap(pageableOperationsKey).get(entity);
}