Skip to content

Commit

Permalink
0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bahrus committed Dec 9, 2023
1 parent eeb3bca commit fa97b21
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
10 changes: 5 additions & 5 deletions prsFrom.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ export function prsFrom(self) {
const splitDependencies = dependencies.split(',').map(x => x.trim());
const args = [];
for (const dependency of splitDependencies) {
let type = dependency[0];
let remoteType = dependency[0];
let remoteProp = dependency;
if ('/@$-#'.includes(type)) {
if ('/@$-#'.includes(remoteType)) {
remoteProp = dependency.substring(1);
}
else {
type = '/';
remoteType = '/';
}
let attr = undefined;
if (type === '-') {
if (remoteType === '-') {
attr = '-' + remoteProp;
remoteProp = lispToCamel(remoteProp);
}
const arg = {
type,
remoteType,
remoteProp,
attr,
};
Expand Down
10 changes: 5 additions & 5 deletions prsFrom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ export function prsFrom(self: AP) : PAP {
const splitDependencies = dependencies!.split(',').map(x => x.trim());
const args: Array<Arg> = [];
for(const dependency of splitDependencies){
let type = dependency[0] as ElTypes;
let remoteType = dependency[0] as ElTypes;
let remoteProp = dependency;
if('/@$-#'.includes(type)){
if('/@$-#'.includes(remoteType)){
remoteProp = dependency.substring(1);

}else{
type = '/';
remoteType = '/';
}

let attr: string | undefined = undefined;
if(type === '-'){
if(remoteType === '-'){
attr = '-' + remoteProp;
remoteProp = lispToCamel(remoteProp);
}
const arg: Arg = {
type,
remoteType,
remoteProp,
attr,
};
Expand Down
5 changes: 2 additions & 3 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {Target, Scope, ProxyPropChangeInfo} from 'trans-render/lib/types';
//import {BVAAllProps} from 'be-value-added/types';
//import {AP as BPAP, ISignal, Actions as BPActions} from 'be-propagating/types';
import {ElTypes, SignalRefType} from 'be-linked/types';
import {ObserveRule} from 'be-observant/types';

export interface EndUserProps extends IBE{
from?: Array<ValueStatement>;
Expand All @@ -12,10 +13,8 @@ export interface EndUserProps extends IBE{
nameOfExport?: string,
}

export interface Arg{
remoteProp?: string,
export interface Arg extends ObserveRule{
attr?: string,
type?: ElTypes,
signal?: WeakRef<SignalRefType>,
}

Expand Down

0 comments on commit fa97b21

Please sign in to comment.