Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
42febfb2
Commit
42febfb2
authored
5 years ago
by
Paul Rosenzweig
Browse files
Options
Downloads
Patches
Plain Diff
pull over EE underscore flow types
parent
6ce4498a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/interfaces/underscore.js
+7
-2
7 additions, 2 deletions
frontend/interfaces/underscore.js
with
7 additions
and
2 deletions
frontend/interfaces/underscore.js
+
7
−
2
View file @
42febfb2
...
...
@@ -47,7 +47,10 @@ declare module "underscore" {
declare
function
object
<
T
>
(
a
:
Array
<
[
string
,
T
]
>
):
{
[
key
:
string
]:
T
};
declare
function
every
<
T
>
(
a
:
Array
<
T
>
,
pred
:
(
val
:
T
)
=>
boolean
):
boolean
;
declare
function
every
<
T
>
(
a
:
Array
<
T
>
|
{
[
key
:
string
]:
T
},
pred
:
(
val
:
T
)
=>
boolean
,
):
boolean
;
declare
function
some
<
T
>
(
a
:
Array
<
T
>
,
pred
:
(
val
:
T
)
=>
boolean
):
boolean
;
declare
function
all
<
T
>
(
a
:
Array
<
T
>
,
pred
:
(
val
:
T
)
=>
boolean
):
boolean
;
declare
function
any
<
T
>
(
a
:
Array
<
T
>
,
pred
:
(
val
:
T
)
=>
boolean
):
boolean
;
...
...
@@ -113,7 +116,7 @@ declare module "underscore" {
declare
function
flatten
(
a
:
Array
<
any
>
):
Array
<
any
>
;
declare
function
debounce
<
T
:
any
=>
any
>
(
func
:
T
):
T
;
declare
function
debounce
<
T
:
Function
>
(
func
:
T
):
T
;
declare
function
partition
<
T
>
(
array
:
T
[],
...
...
@@ -127,4 +130,6 @@ declare module "underscore" {
declare
function
isMatch
(
object
:
Object
,
properties
:
Object
):
boolean
;
declare
function
identity
<
T
>
(
o
:
T
):
T
;
declare
function
uniqueId
(
prefix
?:
string
):
string
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment