🤖 Merge PR #49984 feat(lodash-es): Export supporting types DebouncedFunc, DebounceSettings and ThrottleSettings by @swese44

Exports additional supporting types for Debounce and Throttle, which we need to access in another project.
This commit is contained in:
P.J. Swesey
2020-12-13 09:27:09 -08:00
committed by GitHub
parent 289b90036d
commit 6dc69dab86
4 changed files with 13 additions and 6 deletions

View File

@@ -1,2 +1,4 @@
import { debounce } from "lodash";
import { debounce, DebouncedFunc, DebounceSettings } from "lodash";
export { DebounceSettings, DebouncedFunc };
export default debounce;

View File

@@ -37,7 +37,7 @@ export { default as countBy } from "./countBy";
export { default as create } from "./create";
export { default as curry } from "./curry";
export { default as curryRight } from "./curryRight";
export { default as debounce } from "./debounce";
export { default as debounce, DebouncedFunc, DebounceSettings } from "./debounce";
export { default as deburr } from "./deburr";
export { default as defaultTo } from "./defaultTo";
export { default as defaults } from "./defaults";
@@ -257,7 +257,7 @@ export { default as takeRightWhile } from "./takeRightWhile";
export { default as takeWhile } from "./takeWhile";
export { default as template } from "./template";
export { default as templateSettings } from "./templateSettings";
export { default as throttle } from "./throttle";
export { default as throttle, ThrottleSettings } from "./throttle";
export { default as times } from "./times";
export { default as toArray } from "./toArray";
export { default as toFinite } from "./toFinite";

View File

@@ -31,7 +31,7 @@ import countBy from "lodash-es/countBy";
import create from "lodash-es/create";
import curry from "lodash-es/curry";
import curryRight from "lodash-es/curryRight";
import debounce from "lodash-es/debounce";
import debounce, { DebouncedFunc, DebounceSettings } from "lodash-es/debounce";
import deburr from "lodash-es/deburr";
import defaultTo from "lodash-es/defaultTo";
import defaults from "lodash-es/defaults";
@@ -251,7 +251,7 @@ import takeRightWhile from "lodash-es/takeRightWhile";
import takeWhile from "lodash-es/takeWhile";
import template from "lodash-es/template";
import templateSettings from "lodash-es/templateSettings";
import throttle from "lodash-es/throttle";
import throttle, { ThrottleSettings } from "lodash-es/throttle";
import times from "lodash-es/times";
import toArray from "lodash-es/toArray";
import toFinite from "lodash-es/toFinite";
@@ -335,6 +335,8 @@ import {
curry as curry1,
curryRight as curryRight1,
debounce as debounce1,
DebouncedFunc as DebouncedFunc1,
DebounceSettings as DebounceSettings1,
deburr as deburr1,
defaultTo as defaultTo1,
defaults as defaults1,
@@ -555,6 +557,7 @@ import {
template as template1,
templateSettings as templateSettings1,
throttle as throttle1,
ThrottleSettings as ThrottleSettings1,
times as times1,
toArray as toArray1,
toFinite as toFinite1,

View File

@@ -1,2 +1,4 @@
import { throttle } from "lodash";
import { throttle, ThrottleSettings } from "lodash";
export { ThrottleSettings };
export default throttle;