File tree Expand file tree Collapse file tree 3 files changed +5
-15
lines changed
Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -2406,16 +2406,6 @@ export type PdlModelInput =
24062406 *
24072407 */
24082408export type Platform = "granite-io"
2409- /**
2410- * Backend name and configuration.
2411- *
2412- */
2413- export type Backend =
2414- | LocalizedExpression
2415- | string
2416- | {
2417- [ k : string ] : unknown
2418- }
24192409/**
24202410 * Parameters sent to the model.
24212411 *
@@ -3220,7 +3210,7 @@ export interface GraniteioModelBlock {
32203210 pdl__usage ?: PdlUsage | null
32213211 pdl__model_input ?: PdlModelInput
32223212 platform ?: Platform
3223- backend : Backend
3213+ backend : unknown
32243214 processor ?: unknown
32253215 parameters ?: Parameters
32263216}
Original file line number Diff line number Diff line change 11import { match , P } from "ts-pattern"
22
3- import { Backend , PdlBlock } from "./pdl_ast"
3+ import { PdlBlock } from "./pdl_ast"
44import { ExpressionT , isArgs } from "./helpers"
55
66export function map_block_children (
@@ -72,8 +72,7 @@ export function map_block_children(
7272 const parameters : Parameters = block . parameters
7373 ? f_expr ( block . parameters )
7474 : undefined
75- // @ts -expect-error: f_expr does not preserve the type of the expression
76- const backend : Backend = f_expr ( block . backend )
75+ const backend = f_expr ( block . backend )
7776 const processor = block . processor ? f_expr ( block . processor ) : undefined
7877 return {
7978 ...block ,
Original file line number Diff line number Diff line change 46124612 {
46134613 "additionalProperties" : true ,
46144614 "type" : " object"
4615- }
4615+ },
4616+ {}
46164617 ],
46174618 "description" : " Backend name and configuration.\n " ,
46184619 "title" : " Backend"
You can’t perform that action at this time.
0 commit comments