trustlabs-sdk
Version:
Easy-to-use SDK for displaying trust verification badges on websites. Supports React, Vue, vanilla JS, and CDN usage.
20 lines (19 loc) • 740 B
TypeScript
import { getTrustStatus } from './getTrustStatus';
import { setProxy } from './proxy';
import { renderTrustBadge, renderTrustBadgeWithFetch } from './renderTrustBadge';
import { trustLabsSDK, init, isInitialized, autoRender } from './TrustLabsSDK';
import './styles/badge.css';
declare global {
interface Window {
TrustLabsSDK: {
getTrustStatus: typeof getTrustStatus;
setProxy: typeof setProxy;
renderTrustBadge: typeof renderTrustBadge;
renderTrustBadgeWithFetch: typeof renderTrustBadgeWithFetch;
init: typeof init;
isInitialized: typeof isInitialized;
autoRender: typeof autoRender;
sdk: typeof trustLabsSDK;
};
}
}