UNPKG

demotivator

Version:

A extremely large array of 300+ insults so you can integrate the power of (de)Motivator into your webapp.

30 lines 1.18 kB
/** * @license * Copyright 2024, PorkyProductions, and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { Insult } from './typings'; /** * @returns a psuedorandom insult from the insult array. */ export default function generateInsult(array?: Insult[]): Insult; /** * Get a specific insult from a point and array that you specify * * @param {Insult[]} [array=insults] The array to select from. Deault is original only * @param {number} position The position in the array to select. Starts indexing at 1, not 0. * @returns {Insult} */ export declare const insultAt: (position: number, array?: Insult[]) => Insult; //# sourceMappingURL=generateinsult.d.ts.map