@types/yaml-front-matter
TypeScript definitions for yaml-front-matter
Last updated 3 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/yaml-front-matter 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/yaml-front-matter

Summary

This package contains type definitions for yaml-front-matter (https://github.com/dworthen/js-yaml-front-matter#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yaml-front-matter.

index.d.ts

// Type definitions for yaml-front-matter 4.1
// Project: https://github.com/dworthen/js-yaml-front-matter#readme
// Definitions by: ZHAO Jinxiang <https://github.com/xiaoxiangmoe>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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

import { LoadOptions } from "js-yaml";

export function loadFront(
    content: string | Buffer,
    options?: LoadOptions,
): {
    readonly [key: string]: any;
    readonly __content: string;
};

export function loadFront<contentKeyName extends string>(
    content: string | Buffer,
    options: LoadOptions & { contentKeyName: contentKeyName },
):
    & {
        readonly [key in contentKeyName]: string;
    }
    & {
        readonly [key: string]: any;
    };

export function safeLoadFront(
    content: string | Buffer,
    options?: LoadOptions,
): {
    readonly [key: string]: any;
    readonly __content: string;
};

export function safeLoadFront<contentKeyName extends string>(
    content: string | Buffer,
    options: LoadOptions & { contentKeyName: contentKeyName },
):
    & {
        readonly [key in contentKeyName]: string;
    }
    & {
        readonly [key: string]: any;
    };

Additional Details

Credits

These definitions were written by ZHAO Jinxiang.

Current Tags

  • 4.1.1                                ...           latest (3 years ago)
  • 4.1.0                                ...           ts2.8 (6 years ago)
  • 4.1.0                                ...           ts2.9 (6 years ago)
  • 4.1.0                                ...           ts3.0 (6 years ago)
  • 4.1.0                                ...           ts3.1 (6 years ago)
  • 4.1.0                                ...           ts3.2 (6 years ago)
  • 4.1.0                                ...           ts3.3 (6 years ago)
  • 4.1.0                                ...           ts3.4 (6 years ago)
  • 4.1.0                                ...           ts3.5 (6 years ago)
  • 4.1.0                                ...           ts3.6 (6 years ago)
  • 4.1.0                                ...           ts3.7 (6 years ago)
  • 4.1.0                                ...           ts3.8 (6 years ago)
  • 4.1.0                                ...           ts3.9 (6 years ago)
  • 4.1.0                                ...           ts4.0 (6 years ago)
  • 4.1.0                                ...           ts4.1 (6 years ago)
  • 4.1.0                                ...           ts4.2 (6 years ago)
  • 4.1.0                                ...           ts4.3 (6 years ago)
  • 4.1.0                                ...           ts4.4 (6 years ago)
  • 4.1.1                                ...           ts4.5 (3 years ago)
  • 4.1.1                                ...           ts4.6 (3 years ago)
  • 4.1.1                                ...           ts4.7 (3 years ago)
  • 4.1.1                                ...           ts4.8 (3 years ago)
  • 4.1.1                                ...           ts4.9 (3 years ago)
  • 4.1.1                                ...           ts5.0 (3 years ago)
  • 4.1.1                                ...           ts5.1 (3 years ago)
  • 4.1.1                                ...           ts5.2 (3 years ago)
  • 4.1.1                                ...           ts5.3 (3 years ago)

2 Versions

  • 4.1.1                                ...           3 years ago
  • 4.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |