mirror of
https://github.com/HackPlan/polaris-react.git
synced 2026-05-24 07:30:05 +08:00
17 lines
300 B
TypeScript
17 lines
300 B
TypeScript
export interface Polaris {
|
|
VERSION: string;
|
|
}
|
|
|
|
declare global {
|
|
interface Window {
|
|
Polaris: Polaris;
|
|
}
|
|
}
|
|
|
|
if (typeof window !== 'undefined') {
|
|
window.Polaris = window.Polaris || {};
|
|
window.Polaris.VERSION = '{{POLARIS_VERSION}}';
|
|
}
|
|
|
|
export const polarisVersion = '{{POLARIS_VERSION}}';
|