@kakasoo/proto-typescript
Advanced tools
Comparing version 1.17.1 to 1.17.2
@@ -9,2 +9,5 @@ import { ToPrimitive } from '../interfaces/to-primitive.interface'; | ||
type ParseToArray<T> = T extends ReadonlyOrNot<infer R> ? T : T extends RegExpType.Range<number, number> ? NumberType.Range<T> : []; | ||
/** | ||
* @todo [n: number]: ArrayType.At<T, number>; | ||
*/ | ||
export declare class TypedArray<T extends ReadonlyOrNot<any[]> | RegExpType.Range<number, number>> extends TypedObject<ParseToArray<T>> implements Pick<FunctionType.MethodsFrom<Array<any>>, 'join' | 'at' | 'push' | 'some' | 'unshift' | 'pop' | 'shift'>, ToPrimitive<ParseToArray<T>>, Iterable<ArrayType.ElementOf<ParseToArray<T>>> { | ||
@@ -11,0 +14,0 @@ private readonly array; |
@@ -8,2 +8,5 @@ "use strict"; | ||
const typed_string_class_1 = require("./typed-string.class"); | ||
/** | ||
* @todo [n: number]: ArrayType.At<T, number>; | ||
*/ | ||
class TypedArray extends typed_object_class_1.TypedObject { | ||
@@ -10,0 +13,0 @@ array; |
@@ -46,5 +46,4 @@ import { ToPrimitive } from '../interfaces/to-primitive.interface'; | ||
/** | ||
* @todo remove `as any` statement | ||
* type-safe split. | ||
* | ||
* type-safe split. | ||
* @inheritdoc | ||
@@ -51,0 +50,0 @@ */ |
@@ -80,9 +80,8 @@ "use strict"; | ||
/** | ||
* @todo remove `as any` statement | ||
* type-safe split. | ||
* | ||
* type-safe split. | ||
* @inheritdoc | ||
*/ | ||
split(splitter = new TypedString(), limit = new typed_number_class_1.TypedNumber()) { | ||
const primitiveContainer = (this.isTypedClass(splitter) ? splitter.toPrimitive() : splitter); | ||
const primitiveContainer = this.isTypedClass(splitter) ? splitter.toPrimitive() : splitter; | ||
const primitiveLimit = this.isTypedClass(limit) ? limit.toPrimitive() : limit; | ||
@@ -89,0 +88,0 @@ const initialValue = prototypes_1.StringPrototype.split(this.string, primitiveContainer, primitiveLimit); |
@@ -5,2 +5,3 @@ import { NumberType } from './number.type'; | ||
export declare namespace ArrayType { | ||
type Filter = any; | ||
/** | ||
@@ -7,0 +8,0 @@ * Get length of tuple or string literal type. |
{ | ||
"name": "@kakasoo/proto-typescript", | ||
"version": "1.17.1", | ||
"version": "1.17.2", | ||
"publishConfig": { | ||
@@ -19,4 +19,3 @@ "access": "public" | ||
"test:watch": "jest --watch", | ||
"test:cov": "jest --coverage", | ||
"prepare": "ts-patch install && typia patch" | ||
"test:cov": "jest --coverage" | ||
}, | ||
@@ -23,0 +22,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
125658
135
1419