Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fitbit-sdk-types

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fitbit-sdk-types - npm Package Compare versions

Comparing version 4.0.2 to 4.1.0

2

package.json
{
"name": "fitbit-sdk-types",
"version": "4.0.2",
"version": "4.1.0",
"author": "Sergio Morchón Poveda <sergio.morchon@outlook.com>",

@@ -5,0 +5,0 @@ "description": "Types for Fitbit SDK.",

@@ -26,12 +26,2 @@ declare module 'file-transfer' {

interface InboxItem {
readonly bodyUsed: boolean;
readonly length: number;
readonly name: string;
arrayBuffer(): Promise<ArrayBuffer>;
cbor(): Promise<any>;
json(): Promise<any>;
text(): Promise<string>;
}
interface Inbox

@@ -38,0 +28,0 @@ extends EventTarget<{

@@ -1,14 +0,12 @@

type Component<Props> = (props: Props) => JSX.Element;
declare const Page: Component<{ children: JSX.Element }>;
declare const Section: Component<{
declare const Page: (props: { children: JSX.Element }) => JSX.Element;
declare const Section: (props: {
children: JSX.Element;
title: JSX.Element;
description?: JSX.Element;
}>;
declare const Link: Component<{
}) => JSX.Element;
declare const Link: (props: {
children: JSX.Element;
source: string;
}>;
declare const Text: Component<{
}) => JSX.Element;
declare const Text: (props: {
bold?: boolean;

@@ -18,19 +16,19 @@ italic?: boolean;

children: JSX.Element;
}>;
declare const TextImageRow: Component<{
}) => JSX.Element;
declare const TextImageRow: (props: {
label?: string;
sublabel?: string;
icon?: string;
}>;
declare const Button: Component<{
}) => JSX.Element;
declare const Button: (props: {
label?: string;
list?: boolean;
onClick: (event: Event) => void;
}>;
declare const Toggle: Component<{
}) => JSX.Element;
declare const Toggle: (props: {
settingsKey: string;
label?: string;
onChange?: (newValue: boolean) => void;
}>;
declare const Slider: Component<{
}) => JSX.Element;
declare const Slider: (props: {
label?: string;

@@ -42,8 +40,4 @@ settingsKey?: string;

onChange?: (newValue: number) => void;
}>;
interface AutocompleteOption {
name: string;
[key: string]: any;
}
declare const TextInput: Component<{
}) => JSX.Element;
declare const TextInput: <Option extends { name: string }>(props: {
title?: string;

@@ -58,25 +52,17 @@ label?: string;

onChange?: (newValue: string) => void;
onAutocomplete?: (newValue: string) => AutocompleteOption[];
renderItem?: (autocompleteOption: AutocompleteOption) => JSX.Element;
onAutocomplete?: (newValue: string) => ReadonlyArray<Option>;
renderItem?: (autocompleteOption: Option) => JSX.Element;
renderAutocomplete?: (
autoCompleteOption: AutocompleteOption,
autoCompleteOption: Option,
newValue: string,
) => JSX.Element;
}>;
declare const ColorSelect: Component<{
colors: Array<{
color: string;
value?: any;
}>;
}) => JSX.Element;
declare const ColorSelect: <Value = string>(props: {
colors: ReadonlyArray<{ color: string; value?: Value }>;
centered?: boolean;
settingsKey?: string;
value?: string;
onSelection?: (value: string) => void;
}>;
interface SelectOption {
name: string;
value?: any;
[extraProperty: string]: any;
}
declare const Select: Component<{
value?: Value;
onSelection?: (value: Value) => void;
}) => JSX.Element;
declare const Select: <Option extends { name: string }>(props: {
title?: string;

@@ -86,9 +72,12 @@ selectViewTitle?: string;

settingsKey?: string;
options: SelectOption[];
options: ReadonlyArray<Option>;
multiple?: boolean;
disabled?: boolean;
renderItem?: (option: SelectOption) => JSX.Element;
onSelection?: (selection: { selected: number[]; values: any[] }) => void;
}>;
declare const AdditiveList: Component<{
renderItem?: (option: Option) => JSX.Element;
onSelection?: (selection: {
selected: ReadonlyArray<number>;
values: ReadonlyArray<any>;
}) => void;
}) => JSX.Element;
declare const AdditiveList: <Option extends { name: string }>(props: {
title?: string;

@@ -99,7 +88,7 @@ description?: string;

maxItems?: number | string;
renderItem?: (item: SelectOption) => JSX.Element;
renderItem?: (item: Option) => JSX.Element;
addAction?: JSX.Element;
onListChange?: (elements: SelectOption[]) => void;
}>;
declare const Oauth: Component<{
onListChange?: (elements: ReadonlyArray<Option>) => void;
}) => JSX.Element;
declare const Oauth: (props: {
title?: string;

@@ -129,4 +118,4 @@ label?: string;

onAccessToken?: (accessToken: string) => void;
}>;
declare const StravaLogin: Component<{
}) => JSX.Element;
declare const StravaLogin: (props: {
title?: string;

@@ -138,4 +127,4 @@ description?: string;

onAccessToken?: (accessToken: string, userInfo: any) => void;
}>;
declare const ImagePicker: Component<{
}) => JSX.Element;
declare const ImagePicker: (props: {
title?: string;

@@ -160,6 +149,6 @@ description?: string;

}) => void;
}>;
}) => JSX.Element;
interface SettingsComponentProps {
readonly settings: { [key: string]: string };
readonly settings: { [key: string]: string | undefined };
readonly settingsStorage: LiveStorage;

@@ -166,0 +155,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc