![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@types/glob-stream
Advanced tools
Readme
npm install --save @types/glob-stream
This package contains type definitions for glob-stream (https://github.com/wearefractal/glob-stream).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/glob-stream.
/// <reference types="node" />
import { PicomatchOptions } from "picomatch";
import { Readable } from "streamx";
declare function globStream(glob: string | string[]): Readable<globStream.Entry>;
declare function globStream(glob: string | string[], options: globStream.Options): Readable<globStream.Entry>;
declare namespace globStream {
export interface Entry {
cwd: string;
base: string;
path: string;
}
export type UniqueByStringPredicate = keyof Entry;
export type UniqueByFunctionPredicate = (entry: Entry) => string;
// Here, the settings interface provided by `picomatch` is used rather than the `anymatch` one's.
// This is due to the fact that `anymatch` redirects its options to `picomatch`.
// Furthermore, `anymatch`s type declaration of the `picomatch` options is hand-written and describes some of the available options incorrectly.
export interface Options extends PicomatchOptions {
/**
* Whether or not to error upon an empty singular glob.
*/
allowEmpty?: boolean | undefined;
/**
* The current working directory that the glob is resolved against.
*/
cwd?: string | undefined;
/**
* The root path that the glob is resolved against.
*/
root?: string | undefined;
/**
* The absolute segment of the glob path that isn't a glob. This value is attached
* to each glob object and is useful for relative pathing.
*/
base?: string | undefined;
/**
* Whether or not the {@linkcode cwd} and {@linkcode base} should be the same.
*/
cwdbase?: boolean | undefined;
/**
* Filters stream to remove duplicates based on the string property name or the result of function.
* When using a function, the function receives the streamed
* data (objects containing `cwd`, `base`, `path` properties) to compare against.
*/
uniqueBy?: UniqueByStringPredicate | UniqueByFunctionPredicate | undefined;
}
}
export = globStream;
These definitions were written by Bart van der Schoor, mrmlnc, and Manuel Thalmann.
FAQs
TypeScript definitions for glob-stream
We found that @types/glob-stream demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.