mirror of
https://github.com/flarum/core.git
synced 2025-08-07 17:07:19 +02:00
Bundled output for commit 3537f76eab
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
9
js/dist-typings/common/utils/extract.d.ts
vendored
Normal file
9
js/dist-typings/common/utils/extract.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* 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];
|
Reference in New Issue
Block a user