@harmoniclabs/plu-ts-onchain
Version:
An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript
10 lines (9 loc) • 514 B
TypeScript
import { UtilityTermOf } from "./addUtilityForType.js";
import { ToPType } from "../../../type_system/ts-pluts-conversion.js";
import { TermType } from "../../../type_system/types.js";
import { Term } from "../../../Term/index.js";
import { PType } from "../../../PType/index.js";
export type BaseUtilityTermExtension = {
readonly as: <T extends TermType>(t: T) => UtilityTermOf<ToPType<T>>;
};
export declare function addBaseUtilityTerm<PT extends PType>(term: Term<PT>): Term<PT> & BaseUtilityTermExtension;