@himenon/argocd-typescript-openapi
v1.2.2
Published
Implementation of TypeScript generated from argocd OpenAPI
Downloads
1,606
Readme
@himenon/argocd-typescript-openapi
npm i @himenon/argocd-typescript-openapi
pnpm i @himenon/argocd-typescript-openapi
yarn add @himenon/argocd-typescript-openapi
Usage
import * as fs from "fs";
import * as yaml from "js-yaml"; // pnpm i -D js-yaml @types/js-yaml
import type { Schemas } from "@himenon/argocd-typescript-openapi/dist/v2.9.6";
Build
pnpm run build
Update Schemas
# Fetch and Build
pnpm run build:all
# Fetch schemas
pnpm run fetch:schemas
# Generate source code
pnpm run generate:code
OpenAPI Source for ArgoCD
OpenAPI TypeScript Code Generator
You can also just use the type definition
Use Another Version
Edit config.ts