File tree Expand file tree Collapse file tree 2 files changed +17
-14
lines changed
Expand file tree Collapse file tree 2 files changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -202,12 +202,14 @@ Creates a schema for literal types with Plutus Data Constructor transformation
202202** Signature**
203203
204204``` ts
205- export declare function Literal<Literals extends NonEmptyReadonlyArray <Exclude <SchemaAST .LiteralValue , null | bigint >>>(
206- ... self : Literals
207- ): Literal <Literals >
208- export declare function Literal<Literals extends NonEmptyReadonlyArray <Exclude <SchemaAST .LiteralValue , null | bigint >>>(
209- ... args : [... Literals , LiteralOptions ]
210- ): Literal <Literals >
205+ export declare const Literal: {
206+ <Literals extends NonEmptyReadonlyArray <Exclude <SchemaAST .LiteralValue , null | bigint >>>(
207+ ... self : Literals
208+ ): Literal <Literals >
209+ <Literals extends NonEmptyReadonlyArray <Exclude <SchemaAST .LiteralValue , null | bigint >>>(
210+ ... args : [... Literals , LiteralOptions ]
211+ ): Literal <Literals >
212+ }
211213` ` `
212214
213215Added in v2.0.0
Original file line number Diff line number Diff line change @@ -103,15 +103,16 @@ export interface LiteralOptions {
103103 *
104104 * @since 2.0.0
105105 */
106- export function Literal < Literals extends NonEmptyReadonlyArray < Exclude < SchemaAST . LiteralValue , null | bigint > > > (
107- ...self : Literals
108- ) : Literal < Literals >
109- export function Literal < Literals extends NonEmptyReadonlyArray < Exclude < SchemaAST . LiteralValue , null | bigint > > > (
110- ...args : [ ...Literals , LiteralOptions ]
111- ) : Literal < Literals >
112- export function Literal < Literals extends NonEmptyReadonlyArray < Exclude < SchemaAST . LiteralValue , null | bigint > > > (
106+ export const Literal : {
107+ < Literals extends NonEmptyReadonlyArray < Exclude < SchemaAST . LiteralValue , null | bigint > > > (
108+ ...self : Literals
109+ ) : Literal < Literals >
110+ < Literals extends NonEmptyReadonlyArray < Exclude < SchemaAST . LiteralValue , null | bigint > > > (
111+ ...args : [ ...Literals , LiteralOptions ]
112+ ) : Literal < Literals >
113+ } = < Literals extends NonEmptyReadonlyArray < Exclude < SchemaAST . LiteralValue , null | bigint > > > (
113114 ...args : globalThis . Array < any >
114- ) : Literal < Literals > {
115+ ) : Literal < Literals > => {
115116 // Check if last argument is options object
116117 const lastArg = args [ args . length - 1 ]
117118 const hasOptions =
You can’t perform that action at this time.
0 commit comments