12 lines
343 B
Plaintext
12 lines
343 B
Plaintext
import { Context } from 'preact';
|
|
import { Config } from '../config';
|
|
/**
|
|
* This is a hack to get the current global config from Preact context.
|
|
* My assumption is that we only need one global context which is the ConfigContext
|
|
*
|
|
* @param context
|
|
*/
|
|
export default function getConfig(context: {
|
|
[key: string]: Context<any>;
|
|
}): Config;
|