mirror of
https://github.com/flarum/framework.git
synced 2025-01-10 21:35:38 +08:00
c3a684c7ed
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
10 lines
324 B
TypeScript
10 lines
324 B
TypeScript
/**
|
|
* The `extract` utility deletes a property from an object and returns its
|
|
* value.
|
|
*
|
|
* @param object The object that owns the property
|
|
* @param property The name of the property to extract
|
|
* @return The value of the property
|
|
*/
|
|
export default function extract<T, K extends keyof T>(object: T, property: K): T[K];
|