react-native-format-currency 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ declare type FormatCurrencyFunction = ({ amount, code, }: {
2
+ amount: number;
3
+ code: string;
4
+ }) => [string, number, string];
5
+ export declare const formatCurrency: FormatCurrencyFunction;
6
+ declare type CurrencyCode = {
7
+ code: string;
8
+ name: string;
9
+ };
10
+ export declare const getSupportedCurrencies: () => CurrencyCode[];
11
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-format-currency",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "A lightweight international currency formatter for React Native & Expo (iOS and Android).",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/tsconfig.json CHANGED
@@ -10,7 +10,7 @@
10
10
  // "allowJs": true, /* Allow javascript files to be compiled. */
11
11
  // "checkJs": true, /* Report errors in .js files. */
12
12
  // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
13
- // "declaration": true, /* Generates corresponding '.d.ts' file. */
13
+ "declaration": true, /* Generates corresponding '.d.ts' file. */
14
14
  // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
15
15
  // "sourceMap": true, /* Generates corresponding '.map' file. */
16
16
  // "outFile": "./", /* Concatenate and emit output to single file. */
@@ -1,7 +0,0 @@
1
- declare module "react-native-format-currency" {
2
- export function formatCurrency(
3
- amount: number,
4
- code: string
5
- ): [string, number, string];
6
- export function getSupportedCurrencies(): [{ code: string; name: string }];
7
- }