Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kakasoo/proto-typescript

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kakasoo/proto-typescript - npm Package Compare versions

Comparing version 1.17.1 to 1.17.2

dist/interfaces/index-signature.interface.d.ts

3

dist/classes/typed-array.class.d.ts

@@ -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;

3

dist/classes/typed-string.class.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc