From 1e3f8fb92cb1a2c75307d81cf90c535fa26706d0 Mon Sep 17 00:00:00 2001 From: Cris Mihalache Date: Thu, 21 Dec 2023 20:00:17 +0100 Subject: [PATCH] chore: update docs --- docs/assets/search.js | 2 +- docs/classes/InvalidInputError.html | 14 +++++++------- docs/functions/parse.html | 4 ++-- docs/index.html | 2 +- docs/modules.html | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/assets/search.js b/docs/assets/search.js index 05bedf5..7ccd488 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA6WUzY6bMBSF3+V0eyfB5qet913kBbqxUIXAo7FKDLKddCTEu48gAx4UI2Wmyzjfd8+Rfxhgu38OQg74q00DwfgPgqnOCgInc61a3ZxMf/G/rO0sCBfbQqBuK+eUO94Rhxd/bkELAAGMtMzOGV9n151x3l5q//DUb1vlQwKhr6wyPlo5xLOEZ2v+Hz0hj0avdEj1rnnS7qm3+lp59bUOjfKVbh8useL/24IXnGWhx+dqRFp8MfdTR3B/Ao+mFiGxr6xTa+LzxdRed8Yd5/XY3S0J2jTqFWLAVVmnOwMBfkgPP0F41qptptdzm0+ou/N5KlS+//dbTbd1Im7IMQHJhFhx+J6VJclFmNfnhZliIMkiFNtQHCR5hOIbKgXJNEKlGyoDySxCZRsqB8k8QuUbqgDJIkIVMzXv6FVZr5rTbWelDC9hmB7mvJouhzYghRjGMezu9GsavLzKIPEg8R1p8xUJJgsm2zHvO2ZBynaku4p5cPJdZ77Ms6pu393gJ8FPdvz3Wx6cIjhFzCkJve5Vq42CkOU4vgGSCSPQFwYAAA=="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA6VY2W7jNhT9F/ahfWA13Be/92F+oC9GUGhsJRZqS4YkJ9MG+feCm60rhTZnCgTQDaVzl3MXkn5HQ/82os32Hf3ddnu0ocxg1NWnBm3Q1+61Prb7r935Mv0xDP2AMLoM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r57bC4MD127e0A9kd29weiO3PprT2CDY/n0r4eFG8tPI7xuzPm48P9RH1uz82x7Rq02T59fPwHkWYrTk4gAAA="; \ No newline at end of file diff --git a/docs/classes/InvalidInputError.html b/docs/classes/InvalidInputError.html index 8b7eef4..cca757e 100644 --- a/docs/classes/InvalidInputError.html +++ b/docs/classes/InvalidInputError.html @@ -1,7 +1,7 @@ -InvalidInputError | time-speak

Class InvalidInputError

Error thrown when the input cannot be parsed to a date or duration. It +InvalidInputError | time-speak

Class InvalidInputError

Error thrown when the input cannot be parsed to a date or duration. It optionally accepts a detail parameter that can be used to provide more information about why parsing failed.

-

Hierarchy

  • Error
    • InvalidInputError

Constructors

Hierarchy

  • Error
    • InvalidInputError

Constructors

Properties

_detail _input cause? @@ -18,14 +18,14 @@ The detail parameter will be included in the error message if provided.

Parameters

  • input: string

    The input that could not be parsed

  • Optional detail: string

    A more detailed description of the error

    -

Returns InvalidInputError

Properties

_detail: string

An optional detailed description of the reason why parsing failed.

-
_input: string

The input that could not be parsed.

-
cause?: unknown
message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

    • (err, stackTraces): any
    • Optional override for formatting stack traces

      +

Returns InvalidInputError

Properties

_detail: string

An optional detailed description of the reason why parsing failed.

+
_input: string

The input that could not be parsed.

+
cause?: unknown
message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Accessors

  • get detail(): string
  • Get the detail explaining why parsing failed. If no detail was provided, it will return an empty string.

    Returns string

    The detail string.

    -

Methods

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

\ No newline at end of file diff --git a/docs/functions/parse.html b/docs/functions/parse.html index b11eea0..6564f97 100644 --- a/docs/functions/parse.html +++ b/docs/functions/parse.html @@ -1,4 +1,4 @@ -parse | time-speak

Function parse

  • Parses a string into a Date or number of milliseconds. The string can +parse | time-speak

    Function parse

    • Parses a string into a Date or number of milliseconds. The string can describe the date in natural language (e.g. "tomorrow", "in 2 hours and 3 minutes", "a month ago", etc.) or be a valid date string (e.g. "2018-01-01").

      Parameters

      • input: string

        The string to parse.

        @@ -11,4 +11,4 @@

        Example

        Here are some example invocations:

        Example

        Here are some example invocations that throw an exception:

        parse('in 2 hours and 3 minutes ago')
        parse('a month in the past')
        -
    \ No newline at end of file +
\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index b5dcfe2..fbd7d5b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,4 +1,4 @@ -time-speak

time-speak

A natural language parser for dates, times, and durations

NPM Version +time-speak

time-speak

A natural language parser for dates, times, and durations

NPM Version Downloads Stats

A tiny utility library with no dependencies that parses natural language dates, times, and intervals to either a Date instance or a diff --git a/docs/modules.html b/docs/modules.html index 3fe1cf6..b5266c4 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -1,3 +1,3 @@ -time-speak

time-speak

Index

Classes

InvalidInputError +time-speak

time-speak

Index

Classes

Functions

\ No newline at end of file