Skip to content

Commit 4ef9dfd

Browse files
committed
feat: add slice to namespace
1 parent 2205632 commit 4ef9dfd

File tree

3 files changed

+295
-0
lines changed

3 files changed

+295
-0
lines changed

docs/types/index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import proxy = require( '@stdlib/proxy' );
4747
import random = require( '@stdlib/random' );
4848
import regexp = require( '@stdlib/regexp' );
4949
import simulate = require( '@stdlib/simulate' );
50+
import slice = require( '@stdlib/slice' );
5051
import stats = require( '@stdlib/stats' );
5152
import streams = require( '@stdlib/streams' );
5253
import strided = require( '@stdlib/strided' );
@@ -193,6 +194,11 @@ interface Namespace {
193194
*/
194195
simulate: typeof simulate;
195196

197+
/**
198+
* Standard library slice utilities.
199+
*/
200+
slice: typeof slice;
201+
196202
/**
197203
* Standard library statistical functions.
198204
*/

docs/types/tsconfig.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"compilerOptions": {
3+
"allowSyntheticDefaultImports": false,
4+
"allowUnreachableCode": false,
5+
"allowUnusedLabels": false,
6+
"alwaysStrict": true,
7+
"baseUrl": ".",
8+
"forceConsistentCasingInFileNames": true,
9+
"keyofStringsOnly": false,
10+
"lib": [
11+
"es6"
12+
],
13+
"module": "commonjs",
14+
"moduleResolution": "node",
15+
"newLine": "lf",
16+
"noEmit": true,
17+
"noFallthroughCasesInSwitch": true,
18+
"noImplicitAny": true,
19+
"noImplicitReturns": false,
20+
"noImplicitThis": true,
21+
"noStrictGenericChecks": false,
22+
"noUnusedLocals": true,
23+
"noUnusedParameters": true,
24+
"paths": {},
25+
"pretty": true,
26+
"strictBindCallApply": true,
27+
"strictFunctionTypes": true,
28+
"strictNullChecks": true,
29+
"suppressExcessPropertyErrors": false,
30+
"suppressImplicitAnyIndexErrors": false,
31+
"typeRoots": [ "." ],
32+
"types": []
33+
},
34+
"exclude": [
35+
"node_modules"
36+
]
37+
}

docs/types/tslint.json

Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
{
2+
"extends": "dtslint/dtslint.json",
3+
"rules": {
4+
"expect": true,
5+
"export-just-namespace": true,
6+
"no-any-union": true,
7+
"no-bad-reference": true,
8+
"no-const-enum": true,
9+
"no-dead-reference": true,
10+
"no-declare-current-package": true,
11+
"no-import-default-of-export-equals": true,
12+
"no-outside-dependencies": true,
13+
"no-padding": true,
14+
"no-redundant-undefined": true,
15+
"no-relative-import-in-test": false,
16+
"no-self-import": true,
17+
"no-single-declare-module": true,
18+
"no-single-element-tuple-type": true,
19+
"no-unnecessary-generics": true,
20+
"no-useless-files": true,
21+
"prefer-declare-function": true,
22+
"strict-export-declare-modifiers": true,
23+
"trim-file": true,
24+
"unified-signatures": true,
25+
"void-return": true,
26+
27+
"adjacent-overload-signatures": true,
28+
"ban-ts-ignore": false,
29+
"ban-types": false,
30+
"member-access": [ true, "no-public" ],
31+
"member-ordering": [ true, "fields-first" ],
32+
"no-any": false,
33+
"no-empty-interface": true,
34+
"no-import-side-effect": true,
35+
"no-inferrable-types": true,
36+
"no-internal-module": true,
37+
"no-magic-numbers": false,
38+
"no-namespace": true,
39+
"no-non-null-assertion": true,
40+
"no-parameter-reassignment": false,
41+
"no-reference": true,
42+
"no-unnecessary-type-assertion": true,
43+
"no-var-requires": true,
44+
"only-arrow-functions": false,
45+
"prefer-for-of": false,
46+
"promise-function-async": false,
47+
"typedef": true,
48+
"typedef-whitespace": [ true,
49+
{
50+
"call-signature": "nospace",
51+
"index-signature": "nospace",
52+
"parameter": "nospace",
53+
"property-declaration": "nospace",
54+
"variable-declaration": "nospace"
55+
},
56+
{
57+
"call-signature": "onespace",
58+
"index-signature": "onespace",
59+
"parameter": "onespace",
60+
"property-declaration": "onespace",
61+
"variable-declaration": "onespace"
62+
}
63+
],
64+
"unified-signatures": true,
65+
66+
"await-promise": true,
67+
"ban-comma-operator": true,
68+
"ban": [ true,
69+
{
70+
"name": [ "*", "forEach" ],
71+
"message": "Use a regular `for` loop instead."
72+
}
73+
],
74+
"curly": true,
75+
"forin": true,
76+
"function-constructor": true,
77+
"import-blacklist": [ true, "lodash" ],
78+
"label-position": true,
79+
"no-arg": true,
80+
"no-bitwise": false,
81+
"no-conditional-assignment": true,
82+
"no-console": true,
83+
"no-construct": true,
84+
"no-debugger": true,
85+
"no-duplicate-super": true,
86+
"no-duplicate-switch-case": true,
87+
"no-duplicate-variable": [ true, "check-parameters" ],
88+
"no-dynamic-delete": false,
89+
"no-empty": true,
90+
"no-eval": true,
91+
"no-floating-promises": true,
92+
"no-for-in-array": true,
93+
"no-implicit-dependencies": false,
94+
"no-inferred-empty-object-type": true,
95+
"no-invalid-template-strings": true,
96+
"no-invalid-this": true,
97+
"no-misused-new": true,
98+
"no-null-keyword": false,
99+
"no-object-literal-type-assertion": true,
100+
"no-return-await": true,
101+
"no-shadowed-variable": false,
102+
"no-sparse-arrays": true,
103+
"no-string-literal": false,
104+
"no-string-throw": true,
105+
"no-submodule-imports": false,
106+
"no-switch-case-fall-through": true,
107+
"no-this-assignment": [ true,
108+
{
109+
"allowed-names": [ "^self$" ],
110+
"allow-destructuring": true
111+
}
112+
],
113+
"no-unbound-method": [ true, "ignore-static" ],
114+
"no-unnecessary-class": true,
115+
"no-unsafe-any": true,
116+
"no-unsafe-finally": true,
117+
"no-unused-expression": true,
118+
"no-use-before-declare": true,
119+
"no-var-keyword": true,
120+
"no-void-expression": true,
121+
"prefer-conditional-expression": false,
122+
"prefer-object-spread": false,
123+
"radix": true,
124+
"restrict-plus-operands": true,
125+
"strict-boolean-expressions": false,
126+
"strict-type-predicates": true,
127+
"switch-default": true,
128+
"triple-equals": true,
129+
"unnecessary-constructor": true,
130+
"use-default-type-parameter": true,
131+
"use-isnan": true,
132+
133+
"cyclomatic-complexity": false,
134+
"deprecation": true,
135+
"eofline": true,
136+
"indent": [ true, "tabs", 4 ],
137+
"linebreak-style": [ true, "LF" ],
138+
"max-classes-per-file": [ true, 1 ],
139+
"max-file-line-count": [ true, 1000 ],
140+
"max-line-length": [ true,
141+
{
142+
"limit": 1000,
143+
"ignore-pattern": "^import |\\/\\/ |\\/?\\* "
144+
}
145+
],
146+
"no-default-export": false,
147+
"no-default-import": false,
148+
"no-duplicate-imports": true,
149+
"no-mergeable-namespace": true,
150+
"no-require-imports": false,
151+
"object-literal-sort-keys": false,
152+
"prefer-const": true,
153+
"prefer-readonly": true,
154+
"trailing-comma": [ false,
155+
{
156+
"esSpecCompliant": true
157+
}
158+
],
159+
160+
"align": false,
161+
"array-type": [ true, "generic" ],
162+
"arrow-parens": true,
163+
"arrow-return-shorthand": true,
164+
"binary-expression-operand-order": true,
165+
"callable-types": true,
166+
"class-name": true,
167+
"comment-format": [ true, "check-space" ],
168+
"comment-type": false,
169+
"completed-docs": false,
170+
"encoding": true,
171+
"file-header": false,
172+
"file-name-casing": [ true, "snake-case" ],
173+
"import-spacing": true,
174+
"increment-decrement": true,
175+
"interface-name": [ true, "never-prefix" ],
176+
"interface-over-type-literal": true,
177+
"jsdoc-format": false,
178+
"match-default-export-name": false,
179+
"newline-before-return": false,
180+
"newline-per-chained-call": false,
181+
"new-parens": true,
182+
"no-angle-bracket-type-assertion": true,
183+
"no-boolean-literal-compare": false,
184+
"no-consecutive-blank-lines": [ true, 2 ],
185+
"no-irregular-whitespace": true,
186+
"no-parameter-properties": true,
187+
"no-redundant-jsdoc": true,
188+
"no-reference-import": true,
189+
"no-trailing-whitespace": true,
190+
"no-unnecessary-callback-wrapper": true,
191+
"no-unnecessary-initializer": true,
192+
"no-unnecessary-qualifier": true,
193+
"number-literal-format": false,
194+
"object-literal-key-quotes": [ true, "always" ],
195+
"object-literal-shorthand": [ true, "never" ],
196+
"one-line": [ true,
197+
"check-catch",
198+
"check-finally",
199+
"check-else",
200+
"check-open-brace",
201+
"check-whitespace"
202+
],
203+
"one-variable-per-declaration": true,
204+
"ordered-imports": [ true,
205+
{
206+
"grouped-imports": false,
207+
"import-sources-order": "any",
208+
"named-imports-order": "any",
209+
"module-source-path": "full"
210+
}
211+
],
212+
"prefer-function-over-method": [ true, "allow-public", "allow-protected" ],
213+
"prefer-method-signature": true,
214+
"prefer-switch": [ true,
215+
{
216+
"min-cases": 5
217+
}
218+
],
219+
"prefer-template": false,
220+
"prefer-while": true,
221+
"quotemark": [ true, "single", "avoid-escape", "avoid-template" ],
222+
"return-undefined": false,
223+
"semicolon": [ true, "always" ],
224+
"space-before-function-paren": [ true,
225+
{
226+
"anonymous": "always",
227+
"named": "never",
228+
"asyncArrow": "always",
229+
"method": "never",
230+
"constructor": "never"
231+
}
232+
],
233+
"space-within-parens": [ true, 1 ],
234+
"switch-final-break": [ true, "always" ],
235+
"type-literal-delimiter": [ true,
236+
{
237+
"singleLine": "always"
238+
}
239+
],
240+
"unnecessary-bind": true,
241+
"variable-name": [ true, "ban-keywords", "check-format" ],
242+
"whitespace": [ true,
243+
"check-branch",
244+
"check-decl",
245+
"check-operator",
246+
"check-rest-spread",
247+
"check-separator",
248+
"check-type",
249+
"check-preblock"
250+
]
251+
}
252+
}

0 commit comments

Comments
 (0)