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

@types/glossy

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/glossy

TypeScript definitions for glossy

  • 0.1.3
  • ts4.5
  • ts4.6
  • ts4.7
  • ts4.8
  • ts4.9
  • ts5.0
  • ts5.1
  • ts5.2
  • ts5.3
  • ts5.4
  • ts5.5
  • ts5.6
  • ts5.7
  • ts5.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Installation

npm install --save @types/glossy

Summary

This package contains type definitions for glossy (https://github.com/squeeks/glossy).

Details

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

index.d.ts

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

export interface ProduceOptions {
    facility?: string;
    severity?: string;
    host?: string;
    appName?: string;
    pid?: string | number;
    msgID?: string;
    type?: string;
}

export interface MessageOptions {
    facility?: string;
    severity?: string;
    prival?: number;
    host?: string;
    appName?: string;
    pid?: string | number;
    date?: Date;
    time?: Date;
    msgID?: string;
    structuredData?: unknown;
    message?: string;
}

export interface ProducerCallback {
    (compiledMessage: string): void;
}

export class Produce {
    constructor(options: ProduceOptions | string);

    // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
    alert(options: MessageOptions, callback?: ProducerCallback): string | void;

    // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
    crit(options: MessageOptions, callback?: ProducerCallback): string | void;

    // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
    debug(options: MessageOptions, callback?: ProducerCallback): string | void;

    // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
    emergency(options: MessageOptions, callback?: ProducerCallback): string | void;

    // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
    info(options: MessageOptions, callback?: ProducerCallback): string | void;

    // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
    notice(options: MessageOptions, callback?: ProducerCallback): string | void;

    // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
    produce(options: MessageOptions, callback?: ProducerCallback): string | void;

    // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
    warn(options: MessageOptions, callback?: ProducerCallback): string | void;
}

export interface ParserCallback {
    (parsedMessage: SyslogMessage): void;
}

export interface SyslogMessage {
    originalMessage: string;
    type: string;
    time: Date;
    message: string;
    host?: string | null;
    appName?: string | null;
    pid?: string | null;
    msgID?: string | null;
    structuredData?: unknown;
}

export namespace Parse {
    // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
    function parse(rawMessage: string | Buffer, callback?: ParserCallback): SyslogMessage | void;
}

Additional Details

  • Last updated: Wed, 22 Nov 2023 00:24:48 GMT
  • Dependencies: @types/node

Credits

These definitions were written by bmaupin.

FAQs

Package last updated on 22 Nov 2023

Did you know?

Socket

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.

Install

Related posts

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