@harmoniclabs/plu-ts-onchain
Version:
An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript
6 lines (5 loc) • 531 B
TypeScript
import type { PType } from "../../../../PType/index.js";
import type { Term } from "../../../../Term/index.js";
import { type Methods } from "../../../../type_system/types.js";
import type { FilterMethodsByInput, FilterOutSingleInputMethods, LiftMethods, MethodsAsTerms } from "./methodsTypes.js";
export declare function addUserMethods<PT extends PType, M extends Methods>(term: Term<PT>, methods: M): Term<PT> & LiftMethods<FilterMethodsByInput<M, PT>> & MethodsAsTerms<FilterOutSingleInputMethods<FilterMethodsByInput<M, PT>>>;