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

hotscript

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hotscript - npm Package Compare versions

Comparing version 1.0.13-test.1 to 1.0.13-test.2

28

dist/internals/core/Core.d.ts
import { ExcludePlaceholders, MergeArgs } from "./impl/MergeArgs";
import { Head } from "../helpers";
declare const rawArgs: unique symbol;
type rawArgs = typeof rawArgs;
/**

@@ -28,20 +26,22 @@ * Base interface for all functions.

export interface Fn {
[rawArgs]: unknown;
args: this[rawArgs] extends infer args extends unknown[] ? args : never;
arg0: this[rawArgs] extends [infer arg, ...any] ? arg : never;
arg1: this[rawArgs] extends [any, infer arg, ...any] ? arg : never;
arg2: this[rawArgs] extends [any, any, infer arg, ...any] ? arg : never;
arg3: this[rawArgs] extends [any, any, any, infer arg, ...any] ? arg : never;
["__args"]: unknown;
args: this["__args"] extends infer args extends unknown[] ? args : never;
arg0: this["__args"] extends [infer arg, ...any] ? arg : never;
arg1: this["__args"] extends [any, infer arg, ...any] ? arg : never;
arg2: this["__args"] extends [any, any, infer arg, ...any] ? arg : never;
arg3: this["__args"] extends [any, any, any, infer arg, ...any] ? arg : never;
return: unknown;
}
declare const unset: unique symbol;
declare const _: unique symbol;
/**
* A placeholder type that can be used to indicate that a parameter is not set.
*/
export type unset = typeof unset;
export type unset = {
__tag: "@hotscript/unset";
};
/**
* A placeholder type that can be used to indicate that a parameter is to partially applied.
*/
export type _ = typeof _;
export type _ = {
__tag: "@hotscript/_";
};
export interface arg<Index extends number, Constraint = unknown> extends Fn {

@@ -70,3 +70,3 @@ return: this["args"][Index] extends infer arg extends Constraint ? arg : never;

export type Apply<fn extends Fn, args extends unknown[]> = (fn & {
[rawArgs]: args;
["__args"]: args;
})["return"];

@@ -90,3 +90,3 @@ /**

export type Call<fn extends Fn, arg0 = _, arg1 = _, arg2 = _, arg3 = _> = (fn & {
[rawArgs]: ExcludePlaceholders<[arg0, arg1, arg2, arg3]>;
["__args"]: ExcludePlaceholders<[arg0, arg1, arg2, arg3]>;
})["return"];

@@ -93,0 +93,0 @@ /**

"use strict";
exports.__esModule = true;
var rawArgs = Symbol("@hotscript/rawArgs");
var unset = Symbol("@hotscript/unset");
var _ = Symbol("@hotscript/_");
{
"name": "hotscript",
"version": "1.0.13-test.1",
"version": "1.0.13-test.2",
"description": "A library of composable functions for the type-level! Transform your TypeScript types in any way you want using functions you already know.",

@@ -37,2 +37,2 @@ "main": "./dist/index.js",

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