Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
22
Frontend-Learner/node_modules/superjson/dist/class-registry.js
generated
vendored
Normal file
22
Frontend-Learner/node_modules/superjson/dist/class-registry.js
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import { Registry } from './registry.js';
|
||||
export class ClassRegistry extends Registry {
|
||||
constructor() {
|
||||
super(c => c.name);
|
||||
this.classToAllowedProps = new Map();
|
||||
}
|
||||
register(value, options) {
|
||||
if (typeof options === 'object') {
|
||||
if (options.allowProps) {
|
||||
this.classToAllowedProps.set(value, options.allowProps);
|
||||
}
|
||||
super.register(value, options.identifier);
|
||||
}
|
||||
else {
|
||||
super.register(value, options);
|
||||
}
|
||||
}
|
||||
getAllowedProps(value) {
|
||||
return this.classToAllowedProps.get(value);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=class-registry.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue