@types/once

  • Version 1.4.4
  • Published
  • 7.27 kB
  • No dependencies
  • MIT license

Install

npm i @types/once
yarn add @types/once
pnpm add @types/once

Overview

TypeScript definitions for once

Index

Variables

Interfaces

Namespaces

Variables

variable once

const once: Once;

    Interfaces

    interface FnProps

    interface FnProps<R> {}

      property called

      called: boolean;

        property value

        value: R | undefined;

          interface OnceFn

          interface OnceFn {}

            call signature

            <R>(f: () => R): (() => R) & FnProps<R>;

              call signature

              <T1, R>(f: (t1: T1) => R): ((t1: T1) => R) & FnProps<R>;

                call signature

                <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R>(
                f: (
                t1: T1,
                t2: T2,
                t3: T3,
                t4: T4,
                t5: T5,
                t6: T6,
                t7: T7,
                t8: T8,
                t9: T9,
                t10: T10
                ) => R
                ): ((
                t1: T1,
                t2: T2,
                t3: T3,
                t4: T4,
                t5: T5,
                t6: T6,
                t7: T7,
                t8: T8,
                t9: T9,
                t10: T10
                ) => R) &
                FnProps<R>;

                  call signature

                  <R>(f: (...args: any[]) => R): ((...args: any[]) => R) & FnProps<R>;

                    call signature

                    <T1, T2, R>(f: (t1: T1, t2: T2) => R): ((t1: T1, t2: T2) => R) & FnProps<R>;

                      call signature

                      <T1, T2, T3, R>(f: (t1: T1, t2: T2, t3: T3) => R): ((
                      t1: T1,
                      t2: T2,
                      t3: T3
                      ) => R) &
                      FnProps<R>;

                        call signature

                        <T1, T2, T3, T4, R>(f: (t1: T1, t2: T2, t3: T3, t4: T4) => R): ((
                        t1: T1,
                        t2: T2,
                        t3: T3,
                        t4: T4
                        ) => R) &
                        FnProps<R>;

                          call signature

                          <T1, T2, T3, T4, T5, R>(f: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R): ((
                          t1: T1,
                          t2: T2,
                          t3: T3,
                          t4: T4,
                          t5: T5
                          ) => R) &
                          FnProps<R>;

                            call signature

                            <T1, T2, T3, T4, T5, T6, R>(
                            f: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6) => R
                            ): ((t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6) => R) & FnProps<R>;

                              call signature

                              <T1, T2, T3, T4, T5, T6, T7, R>(
                              f: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7) => R
                              ): ((t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7) => R) & FnProps<R>;

                                call signature

                                <T1, T2, T3, T4, T5, T6, T7, T8, R>(
                                f: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8) => R
                                ): ((t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8) => R) &
                                FnProps<R>;

                                  call signature

                                  <T1, T2, T3, T4, T5, T6, T7, T8, T9, R>(
                                  f: (
                                  t1: T1,
                                  t2: T2,
                                  t3: T3,
                                  t4: T4,
                                  t5: T5,
                                  t6: T6,
                                  t7: T7,
                                  t8: T8,
                                  t9: T9
                                  ) => R
                                  ): ((
                                  t1: T1,
                                  t2: T2,
                                  t3: T3,
                                  t4: T4,
                                  t5: T5,
                                  t6: T6,
                                  t7: T7,
                                  t8: T8,
                                  t9: T9
                                  ) => R) &
                                  FnProps<R>;

                                    Namespaces

                                    namespace global

                                    namespace global {}

                                      interface Function

                                      interface Function {}

                                        method once

                                        once: () => Function & once.FnProps<any>;

                                          Package Files (1)

                                          Dependencies (0)

                                          No dependencies.

                                          Dev Dependencies (0)

                                          No dev dependencies.

                                          Peer Dependencies (0)

                                          No peer dependencies.

                                          Badge

                                          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/once.

                                          • Markdown
                                            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/once)
                                          • HTML
                                            <a href="https://www.jsdocs.io/package/@types/once"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>