bitwarden-estensione-browser/apps/browser/src/models/browserComponentState.ts

15 lines
292 B
TypeScript

import { Jsonify } from "type-fest";
export class BrowserComponentState {
scrollY: number;
searchText: string;
static fromJSON(json: Jsonify<BrowserComponentState>) {
if (json == null) {
return null;
}
return Object.assign(new BrowserComponentState(), json);
}
}