@types/parcel__watcher
TypeScript definitions for @parcel/watcher
Last updated 2 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/parcel__watcher 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/parcel__watcher

Summary

This package contains type definitions for @parcel/watcher (https://github.com/parcel-bundler/watcher#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parcel__watcher.

index.d.ts

/// <reference types="node"/>

export class ParcelWatcherSubscription {
    unsubscribe(): Promise<void>;
}

export type ParcelWatcherEventType = "create" | "update" | "delete";

export interface ParcelWatcherEvent {
    type: ParcelWatcherEventType;
    path: string;
}

export type ParcelWatcherBackend = "fs-events" | "watchman" | "inotify" | "windows" | "brute-force";

export interface ParcelWatcherOptions {
    ignore?: string[] | undefined;
    backend?: ParcelWatcherBackend | undefined;
}

export type ParcelWatcherCallback = (error?: Error, events?: ParcelWatcherEvent[]) => any;

export function getEventsSince(
    dirPath: string,
    snapshotPath: string,
    options?: ParcelWatcherOptions,
): Promise<ParcelWatcherEvent[]>;

export function subscribe(
    dirPath: string,
    callback: ParcelWatcherCallback,
    options?: ParcelWatcherOptions,
): Promise<ParcelWatcherSubscription>;

export function unsubscribe(
    dirPath: string,
    callback: ParcelWatcherCallback,
    options?: ParcelWatcherOptions,
): Promise<void>;

export function writeSnapshot(dirPath: string, snapshotPath: string, options?: ParcelWatcherOptions): Promise<void>;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Matt Kane.

Current Tags

  • 2.0.5                                ...           latest (2 years ago)
  • 2.0.0                                ...           ts2.8 (6 years ago)
  • 2.0.0                                ...           ts2.9 (6 years ago)
  • 2.0.0                                ...           ts3.0 (6 years ago)
  • 2.0.0                                ...           ts3.1 (6 years ago)
  • 2.0.1                                ...           ts3.2 (6 years ago)
  • 2.0.1                                ...           ts3.3 (6 years ago)
  • 2.0.1                                ...           ts3.4 (6 years ago)
  • 2.0.1                                ...           ts3.5 (6 years ago)
  • 2.0.2                                ...           ts3.6 (5 years ago)
  • 2.0.2                                ...           ts3.7 (5 years ago)
  • 2.0.2                                ...           ts3.8 (5 years ago)
  • 2.0.2                                ...           ts3.9 (5 years ago)
  • 2.0.2                                ...           ts4.0 (5 years ago)
  • 2.0.2                                ...           ts4.1 (5 years ago)
  • 2.0.2                                ...           ts4.2 (5 years ago)
  • 2.0.2                                ...           ts4.3 (5 years ago)
  • 2.0.2                                ...           ts4.4 (5 years ago)
  • 2.0.5                                ...           ts4.5 (2 years ago)
  • 2.0.5                                ...           ts4.6 (2 years ago)
  • 2.0.5                                ...           ts4.7 (2 years ago)
  • 2.0.5                                ...           ts4.8 (2 years ago)
  • 2.0.5                                ...           ts4.9 (2 years ago)
  • 2.0.5                                ...           ts5.0 (2 years ago)
  • 2.0.5                                ...           ts5.1 (2 years ago)
  • 2.0.5                                ...           ts5.2 (2 years ago)
  • 2.0.5                                ...           ts5.3 (2 years ago)
  • 2.0.5                                ...           ts5.4 (2 years ago)
  • 2.0.5                                ...           ts5.5 (2 years ago)
  • 2.0.5                                ...           ts5.6 (2 years ago)
  • 2.0.5                                ...           ts5.7 (2 years ago)
  • 2.0.5                                ...           ts5.8 (2 years ago)
  • 2.0.5                                ...           ts5.9 (2 years ago)

6 Versions

  • 2.0.5                                ...           2 years ago
  • 2.0.4                                ...           2 years ago
  • 2.0.3                                ...           3 years ago
  • 2.0.2                                ...           5 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |