npm.io
2.0.2 • Published 2 years ago

@types/phplint

Licence
MIT
Version
2.0.2
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/phplint

Summary

This package contains type definitions for phplint (https://github.com/wayneashleyberry/phplint).

Details

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

index.d.ts

/// <reference types="grunt" />

export interface Options {
    stdout?: boolean | undefined;
    stderr?: boolean | undefined;
    limit?: number | undefined;
    suppress?: boolean | undefined;
    useCache?: boolean | undefined;
    cacheDirName?: string | undefined;
    tmpDir?: string | undefined;
    phpCmd?: string | undefined;
}

export type Callback = (error: string, stdout?: string, stderr?: string) => void;

export function cli(paths: string | readonly string[], options: Options, callback?: Callback): void;

export function lint(files: string | readonly string[], options: Options, callback: Callback): void;
export function lint(files: string | readonly string[], callback: Callback): void;

export function clearCache(cacheDirName: string, tmpDir: string, callback: Callback): void;
export function clearCache(callback: Callback): void;

export function gruntPlugin(grunt: IGrunt): void;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: @types/grunt

Credits

These definitions were written by Adam Thompson-Sharpe.