/* This file is part of »munin«. Copyright 2025 'Fenris Wolf' »munin« is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. »munin« is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with »munin«. If not, see . */ namespace _munin.sources { /** */ export function factory( description : { kind : string, data : any } ) : _munin.type_source { switch (description.kind) { default: { throw (new Error("unhandled source kind: " + description.kind)); break; } case "kalender_digital": { return _munin.sources.kalender_digital.implementation_source( description.data as _munin.sources.kalender_digital.type_parameters ); return } } } }