🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@nldoc/event-types

Package Overview
Dependencies
Maintainers
3
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nldoc/event-types

NLdoc's Type Definitions for Events

npmnpm
Version
2.0.63
Version published
Weekly downloads
216
1170.59%
Maintainers
3
Weekly downloads
 
Created
Source

NLdoc Event Specification Types

This repository contains the event specification types for the NLdoc project.

Installation

Add to your .npmrc file:

@nldoc:registry=https://gitlab.com/api/v4/packages/npm/

Then run:

npm install @nldoc/event-types

Usage

import { DoneEvent } from '@nldoc/event-types'

const typedEvent: DoneEvent = await DoneEvent.parseAsync(event)

Development

Project structure

The project is structured as follows:

  • src/: Contains the TypeScript source files.
    • src/__test__/: Contains the test helpers for the TypeScript source files.
    • src/**/*.spec.ts: Contains the tests for the TypeScript source files.
    • src/events.ts: Contains the Event types as documented in the Specification.
  • dist/: Contains the compiled JavaScript files.

Writing new types

When writing new types, they would go into src/events.ts.

Testing

The types in this package are tested against the collection of examples (valid and invalid) that were provided in the NLdoc event specification. These examples will be downloaded to the local filesystem on first run of the tests.

To run the tests, run:

$ npm test

License

See LICENSE.txt for the license of this repository.

FAQs

Package last updated on 08 Jul 2025

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