@ng-doc/core
Version:
<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>
8 lines (7 loc) • 354 B
TypeScript
import { FunctionType } from '../types';
/**
* Extracts the default values of a function parameters.
* It returns an array of the default values because after minification the parameter names are lost.
* @param fn - Function to extract the default values from
*/
export declare function extractFunctionDefaults(fn: FunctionType<unknown>): unknown[];