kibana/api_docs/kbn_securitysolution_hook_utils.json
Stacey Gammon e92a945ab1
Add packages to our API documentation (#113564) (#114513)
* Add packages

* Update docs

* Fix test and types

* debug heap size

* remove debug heap line

* updated docs
# Conflicts:
#	api_docs/alerting.mdx
#	api_docs/apm.json
#	api_docs/core.mdx
#	api_docs/core_application.mdx
#	api_docs/core_chrome.mdx
#	api_docs/core_http.mdx
#	api_docs/core_saved_objects.mdx
#	api_docs/custom_integrations.mdx
#	api_docs/data.json
#	api_docs/data.mdx
#	api_docs/data_autocomplete.mdx
#	api_docs/data_data_views.json
#	api_docs/data_data_views.mdx
#	api_docs/data_query.mdx
#	api_docs/data_search.mdx
#	api_docs/data_ui.mdx
#	api_docs/deprecations_by_api.mdx
#	api_docs/deprecations_by_plugin.mdx
#	api_docs/discover_enhanced.json
#	api_docs/embeddable.json
#	api_docs/event_log.mdx
#	api_docs/fleet.mdx
#	api_docs/home.json
#	api_docs/index_management.json
#	api_docs/interactive_setup.mdx
#	api_docs/kibana_legacy.json
#	api_docs/kibana_legacy.mdx
#	api_docs/observability.mdx
#	api_docs/plugin_directory.mdx
#	api_docs/security_oss.mdx
2021-10-11 13:58:18 -04:00

190 lines
5.9 KiB
JSON

{
"id": "@kbn/securitysolution-hook-utils",
"client": {
"classes": [],
"functions": [],
"interfaces": [],
"enums": [],
"misc": [],
"objects": []
},
"server": {
"classes": [],
"functions": [],
"interfaces": [],
"enums": [],
"misc": [],
"objects": []
},
"common": {
"classes": [],
"functions": [
{
"parentPluginId": "@kbn/securitysolution-hook-utils",
"id": "def-common.useAsync",
"type": "Function",
"tags": [],
"label": "useAsync",
"description": [
"\n\nThis hook wraps a promise-returning thunk (task) in order to conditionally\ninitiate the work, and automatically provide state corresponding to the\ntask's status.\n\nIn order to function properly and not rerender unnecessarily, ensure that\nyour task is a stable function reference.\n"
],
"signature": [
"<Args extends unknown[], Result>(fn: (...args: Args) => Promise<Result>) => ",
"Task",
"<Args, Result>"
],
"path": "packages/kbn-securitysolution-hook-utils/src/use_async/index.ts",
"deprecated": false,
"children": [
{
"parentPluginId": "@kbn/securitysolution-hook-utils",
"id": "def-common.useAsync.$1",
"type": "Function",
"tags": [],
"label": "fn",
"description": [
"a function returning a promise."
],
"signature": [
"(...args: Args) => Promise<Result>"
],
"path": "packages/kbn-securitysolution-hook-utils/src/use_async/index.ts",
"deprecated": false,
"isRequired": true
}
],
"returnComment": [
"An {@link Task} containing the task's current state along with a\nstart callback"
],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/securitysolution-hook-utils",
"id": "def-common.useIsMounted",
"type": "Function",
"tags": [],
"label": "useIsMounted",
"description": [
"\n"
],
"signature": [
"() => GetIsMounted"
],
"path": "packages/kbn-securitysolution-hook-utils/src/use_is_mounted/index.ts",
"deprecated": false,
"children": [],
"returnComment": [
"A {@link GetIsMounted} getter function returning whether the component is currently mounted"
],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/securitysolution-hook-utils",
"id": "def-common.useObservable",
"type": "Function",
"tags": [],
"label": "useObservable",
"description": [
"\n"
],
"signature": [
"<Args extends unknown[], Result>(fn: (...args: Args) => ",
"Observable",
"<Result>) => ",
"Task",
"<Args, Result>"
],
"path": "packages/kbn-securitysolution-hook-utils/src/use_observable/index.ts",
"deprecated": false,
"children": [
{
"parentPluginId": "@kbn/securitysolution-hook-utils",
"id": "def-common.useObservable.$1",
"type": "Function",
"tags": [],
"label": "fn",
"description": [
"function returning an observable"
],
"signature": [
"(...args: Args) => ",
"Observable",
"<Result>"
],
"path": "packages/kbn-securitysolution-hook-utils/src/use_observable/index.ts",
"deprecated": false,
"isRequired": true
}
],
"returnComment": [
"An {@link Async} containing the underlying task's state along with a start callback"
],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/securitysolution-hook-utils",
"id": "def-common.withOptionalSignal",
"type": "Function",
"tags": [],
"label": "withOptionalSignal",
"description": [
"\n"
],
"signature": [
"<Args extends SignalArgs, Result>(fn: (args: Args) => Result) => (args: ",
{
"pluginId": "@kbn/securitysolution-hook-utils",
"scope": "common",
"docId": "kibKbnSecuritysolutionHookUtilsPluginApi",
"section": "def-common.OptionalSignalArgs",
"text": "OptionalSignalArgs"
},
"<Args>) => Result"
],
"path": "packages/kbn-securitysolution-hook-utils/src/with_optional_signal/index.ts",
"deprecated": false,
"children": [
{
"parentPluginId": "@kbn/securitysolution-hook-utils",
"id": "def-common.withOptionalSignal.$1",
"type": "Function",
"tags": [],
"label": "fn",
"description": [
"an async function receiving an AbortSignal argument"
],
"signature": [
"(args: Args) => Result"
],
"path": "packages/kbn-securitysolution-hook-utils/src/with_optional_signal/index.ts",
"deprecated": false,
"isRequired": true
}
],
"returnComment": [
"An async function where the AbortSignal argument is optional"
],
"initialIsOpen": false
}
],
"interfaces": [],
"enums": [],
"misc": [
{
"parentPluginId": "@kbn/securitysolution-hook-utils",
"id": "def-common.OptionalSignalArgs",
"type": "Type",
"tags": [],
"label": "OptionalSignalArgs",
"description": [],
"signature": [
"Pick<Args, Exclude<keyof Args, \"signal\">> & Partial<SignalArgs>"
],
"path": "packages/kbn-securitysolution-hook-utils/src/with_optional_signal/index.ts",
"deprecated": false,
"initialIsOpen": false
}
],
"objects": []
}
}