polkadot-js/api

View on GitHub
packages/api/src/rx/decorateMethod.ts

Summary

Maintainability
A
0 mins
Test Coverage
// Copyright 2017-2024 @polkadot/api authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { Codec } from '@polkadot/types/types';
import type { DecorateFn } from '../types/index.js';

export function toRxMethod <M extends DecorateFn<Codec>> (method: M): M {
  return method;
}