UNPKG

@starknet-io/get-starknet-core

Version:

[![npm](https://img.shields.io/npm/v/get-starknet.svg)](https://www.npmjs.com/package/get-starknet)

5 lines (4 loc) 286 B
import { WalletProvider } from "../discovery"; import { type StarknetWindowObject } from "@starknet-io/types-js"; export type Sort = string[] | "random" | null | undefined; export declare const sortBy: <T extends WalletProvider | StarknetWindowObject>(wallets: T[], sort: Sort) => T[];