rename prop_source to prop

pull/9826/head
Rich Harris 3 years ago
parent fb4a706802
commit d781798800

@ -396,7 +396,7 @@ export function get_prop_source(binding, state, name, initial) {
if (arg) args.push(arg);
}
return b.call('$.prop_source', ...args);
return b.call('$.prop', ...args);
}
/**

@ -1411,7 +1411,7 @@ export function is_store(val) {
* @param {V | (() => V)} [initial]
* @returns {import('./types.js').Signal<V> | (() => V)}
*/
export function prop_source(props, key, flags, initial) {
export function prop(props, key, flags, initial) {
var immutable = (flags & PROPS_IS_IMMUTABLE) !== 0;
var runes = (flags & PROPS_IS_RUNES) !== 0;

@ -7,7 +7,7 @@ export {
source,
mutable_source,
derived,
prop_source,
prop,
user_effect,
render_effect,
pre_effect,

Loading…
Cancel
Save