0.1.0 • Published 4 years ago

uphere v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

uphere NPM

Upload files to azure

API

interface IUpHere{
  account:string;
  accountSas:string;
  containerName:string;
}

Component API

export interface IUpHereComponent {
  accountName: string;
  accountSas: string;
  containerName: string;
  multiple:boolean;
  onSuccess<T>(t: T): void;
  onError<E>(e: E): void;
}

Button

const UpHereButton: (p: IUpHereComponent) => <D extends React.ElementType<any> = "button", P = {}>(props: OverrideProps<ButtonTypeMap<P, D>, D>) => JSX.Element

HOC

const withUpHere: (p: IUpHereComponent) => <T extends object>(WrappedComponent: React.ComponentType<T>) => React.FC<T>