0.0.3 • Published 6 months ago

@types/world-currencies v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/world-currencies

Summary

This package contains type definitions for world-currencies (https://github.com/wiredmax/world-currencies).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/world-currencies.

index.d.ts

// Type definitions for world-currencies 0.0
// Project: https://github.com/wiredmax/world-currencies
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export = worldCurrencies;

declare const worldCurrencies: Record<string, worldCurrencies.Currency>;

declare namespace worldCurrencies {
    interface Currency {
        name: string;
        iso: IsoData;
        units: {
            major: Unit;
            minor: MinorUnit;
            minor2?: MinorUnit | undefined;
        };
        banknotes: CashValues;
        coins: CashValues;
    }

    interface IsoData {
        code: string;
        number: string;
    }

    interface Unit {
        name: string;
        symbol: string;
    }

    interface MinorUnit extends Unit {
        majorValue: number;
    }

    interface CashValues {
        frequent: string[];
        rare: string[];
    }
}

Additional Details

  • Last updated: Fri, 02 Jul 2021 18:06:02 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by BendingBender.

0.0.3

6 months ago

0.0.2

7 months ago

0.0.1

3 years ago

0.0.0

3 years ago