@harmoniclabs/plu-ts-onchain
Version:
An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript
15 lines (14 loc) • 814 B
TypeScript
import { PStruct } from "./pstruct.js";
import { GenericStructDefinition, Methods, PrimType, StructDefinition, StructT, TermType } from "../../type_system/types.js";
/**
* @param getDescriptor
* @returns
*
* @deprecated
*
* use a function that reutrns a struct based on the specfied types instead
*/
export declare function pgenericStruct<ConstStructDef extends StructDefinition, TypeArgs extends [TermType, ...TermType[]]>(getDescriptor: (...tyArgs: TypeArgs) => PStruct<ConstStructDef, Methods>): ((<TyArgs extends TypeArgs>(...tyArgs: TyArgs) => PStruct<ConstStructDef, Methods>) & {
type: [PrimType.Struct, GenericStructDefinition];
});
export declare function typeofGenericStruct(genStruct: (...tyArgs: TermType[]) => PStruct<StructDefinition, Methods>): StructT<GenericStructDefinition, Methods>;